/BitBot

A WIP Discord bot for the BitCrackers Discord.

Primary LanguageGo

BitBot Discord Paypal

BitBot is the open source utility and moderation bot for BitCrackers. Written in Go and made with ❤️.

Getting Started

Disclaimer: This assumes you are planning on running this bot on macOS or Linux.

  1. Install Go and get it properly configured.
    1. This is a great resource for learning how Go works.
 $ go get -u github.com/BitCrackers/BitBot
 $ go install github.com/BitCrackers/BitBot
  1. go install will produce the BitBot binary in $GOPATH/bin. The executable will depend on a handful of environment variables being properly exported, the list of which you can find in the next section.

Environment Variables

BitBot checks for a number of environment variables. The current list is:

  • $BITBOT_TOKEN

TOML Config

In addition to the required environment variables, BitBot has a TOML based config file (config.toml) that is generated on the first run of the bot. None of the values in the config file are required, but taking the time to go through them can expand the functionality of the bot, such as setting up moderation users, muted roles, and more!

Release Candidate 1 Milestones

  • TOML config for extra functionality. (In progress)
  • BITBOT_DEBUG environment variable actually doing something
    • This was moved into the config but still needs work.
  • Moderation commands.
    • Kicking
    • Banning
    • Muting
    • Temp-ban and Temp-mute
  • sqlite3 database integration
  • Moderation logging in channel
  • Parsing messages for common phrases (listed in config.toml probably)
  • Possible: Pull build artifacts for menu every update and send to channel

Contributing

  1. Fork it (https://github.com/BitCrackers/BitBot/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request