Skip to content

lrb2/lrbot-discord

Repository files navigation

lrbot

A Discord bot

Commands

Setup

  1. Install Docker Engine.
  2. Clone the repository and navigate to the base folder
  3. Build the Docker image using docker compose build (this may require sudo). If the image is being rebuilt and the use of cached data is not desired, append --no-cache to build it anew.
  4. Create a file secret-token that contains the token for your Discord bot application.
  5. Create config/settings.cfg from config/settings-sample.cfg, changing owner to the User ID of a Discord account that should receive any urgent alerts and be able to perform restricted commands.
  6. Run the image in detached mode using docker compose up -d. Note that building the image will take a long time (depending on your internet connection) if the cache is not used, since it includes downloading and installing the entirety of TeX Live.

Configuration

See config/settings.cfg for most configuration options.

Keyword actions can be created in config/keywords.json. See config/keywords-sample.json for reference.

Reminders and reminder reminders can be created in config/reminders.json or by using $remindme once (or if) that feature is completed. See config/reminders-sample.json for reference.

Development

Development can be done from within a development container, as enabled by Visual Studio Code.. With the Dev Containers extension active, use the Reopen in Container command to create and enter the development container. Within the container, the correct Python version and all necessary packages are automatically installed, enabling code-checking features. The container uses docker-outside-of-docker so that the application container can be used from within the development container. To start the application from within the development container, add -f docker-compose.dev.yml to docker compose commands when starting the container.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published