Skip to content

Victonator/thomas-bot

This branch is 1 commit ahead of, 30 commits behind itfactory-tm/thomas-bot:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8a35327 · Jun 7, 2022
Oct 27, 2021
Jun 7, 2022
Mar 30, 2020
Mar 26, 2022
Oct 25, 2020
Aug 30, 2020
Apr 12, 2020
Sep 30, 2021
Feb 20, 2022
May 25, 2021
Feb 8, 2021
Oct 27, 2021
Mar 30, 2020
Apr 12, 2020
Feb 10, 2021
Jan 25, 2022
Sep 4, 2021
Dec 6, 2021
Dec 6, 2021
Sep 1, 2021

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%