Skip to content

Victonator/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:
    • On Ubuntu and other Debian-based distros, install the following packages: libsox-dev libsdl2-dev portaudio19-dev libopusfile-dev libopus-dev curl.
    • On Arch-based distros, install the following packages: libsoxr sdl portaudio opusfile.
    • On Windows, you're on your own for now :)
  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

About

Thomas Bot, the friendly Discord bot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 98.2%
  • Other 1.8%