A Discord bot to help moderate my personal Discord servers
- Serenity with Poise
- Diesel ORM
- Automated spam prevention
- User details lookup
/config message_logging <log channel>
- sets up deleted or edited message logging to the specified channel/config spam_autoban <threshold> <log channel>
- sets up automated spam prevention, by banning users after a threshold is reached/user <user>
- shows information on the specified user
- Create a
.env
file based off the.env.example
file, you may need to prefix each non-blank line withexport
- Run
source .env
- Run the bot with
cargo run
- Create a
.env
file based off the.env.example
file - Run
docker compose build
- Run
docker compose up
- Generate a blank migration with
diesel migration generate <name>
- Write the SQL for your migration
- Run your migration with
diesel migration run
- (Optional) If necessary, edit and then re-run your migration with
diesel migration redo
- Update
schema.rs
withdiesel print-schema > src/database/schema.rs