repository
0.0.0-20250907144648-130ec6adf9ab
Repository: https://github.com/itfactory-tm/thomas-bot.git
Documentation: pkg.go.dev
# README
Thomas Bot

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
- 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:
- On Arch-based distros, install the following packages:
- On Windows, you're on your own for now :)
- 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
Docker
- 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
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