Rusty-bot is a Discord bot that monitors users in a Discord server and stores information about their reputation in an external database. The bot is built using Rust and utilizes Prisma for database access.
- Monitors users in a Discord server
- Stores information about their reputation in an external database
- Uses Prisma for database access
To install Rusty-bot, follow these steps:
- Clone the repository:
git clone https://github.com/JohnnyJumper/RustyBot.git
- Navigate to the project directory:
cd RustyBot
- Install dependencies:
cargo build
- Set up the environment variables for the bot and database
- Run the bot:
cargo run
The following environment variables are required for Rusty-bot to function properly:
DISCORD_TOKEN
: Discord bot tokenDATABASE_URL
: URL of the external databaseGUILD_ID
: Discord guild id to monitor (server id)BOT_ADMIN_ROLE
: Discord role id for authorized adminsBOT_ROLE
: Discord role id for bots
Add thouse to .env in root folder
Rusty-bot will automatically monitor users in the Discord server it is added to. The bot will store information about each user's reputation in the external database. This information can be accessed and manipulated via the Prisma API.
Contributions to Rusty-bot are welcome! To contribute, follow these steps:
- Fork the repository
- Create a new branch:
git checkout -b my-feature-branch
- Make your changes and commit them:
git commit -am 'Add some feature'
- Push the branch to your fork:
git push origin my-feature-branch
- Create a new pull request
Rusty-bot is licensed under the MIT License.