Skip to content

itfactory-tm/thomas-bot

Repository files navigation

Thomas Bot

Thomas Bot logo

Thomas Bot is the friendly Discord bot! It hangs around in the official IT Factory Discord server. It helps teachers doing their job and students also... sometimes...

Running locally

Build manually

  1. Make sure the Go toolchain is installed and working.
  2. Make sure the required dependencies are installed:
  3. Compile and run the project:
    • On Unix-like systems, run THOMASBOT_TOKEN={TOKEN} go run ./, where {TOKEN} is your Discord bot's token.
    • On Windows, set the THOMASBOT_TOKEN environment variable through your system properties. Then, run the bot using go run ./

Docker

  1. Make sure Docker is installed and working.
  2. Build the container using docker build -t thomas-bot ..
  3. Run the image you've built using docker run -it -e "THOMASBOT_TOKEN={TOKEN}" thomas-bot where {TOKEN} is your Discord bot's token.
    • You can change the prefix by setting the THOMASBOT_PREFIX environment variable.

Configuration

You can configure some aspects of the bot through configuration files. For instance, by setting the THOMASBOT_PREFIX you can change the prefix that is used to trigger the bot. See main.go for more options.

Credits

The cute robot is CC0 by Ann Hannes

Releases

No releases published

Packages

No packages published

Languages