/mini-me

A discord bot, minified.

Primary LanguageRust

Mini Me

Looks can be deceiving | Invite to Your Server

Usage

Commands:

  • ?set-prefix <prefix> - Set a default prefix for the bot in this server. ? is the default if left unconfigured, and ?? is always available even if a custom prefix is configured.
  • ?set-moderator-role @role - Set the minimum discord role required to add/remove commands.
  • ?commmand add <command> <response...> - Add a dyanmic command! Will respond with the rest of the arguments.
  • ?commmand remove <command> - Remove a dynamic command.
  • ?commmand get <command> - Same as running the command itself
  • ?<dynamic command> - Print the response of a dynamic command

Command Nuances

  • Using %or separates the response of a command into multiple equally randomly chosen responses.

Notes

Required permissions: 2147814464

  • View Channels
  • Send Messages
  • Read Message History
  • Use External Emoji
  • Add Reactions
  • Use Slash Commands

Building

  1. Install rust/cargo/etc., docker + docker-compose
  2. cargo install sqlx-cli
  3. docker-compose -f dev.docker-compose.yml up -d
  4. cp .env.example .env
  5. Add a discord bot token to .env where it says
  6. sqlx database create
  7. cargo build / cargo run

Contributors

  • zoo los
  • amin (security consultant)