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...
- Make sure the Go toolchain is installed and working.
- 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 :)
- On Ubuntu and other Debian-based distros, install the following packages:
- 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 usinggo run ./
- On Unix-like systems, run
- Make sure Docker is installed and working.
- Build the container using
docker build -t thomas-bot .
. - 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.
- You can change the prefix by setting the
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.
The cute robot is CC0 by Ann Hannes