Dangerbot is a Discord bot built with Java and the Spring Boot framework. It uses the Javacord library to interact with the Discord API.
The application follows a standard layered architecture:
- Controllers: Handles incoming HTTP requests.
- Services: Contains the business logic of the application.
- Repositories: Interacts with the database.
- Listeners: Responds to events from the Discord API.
- Roll Dice: A user can roll a dice using a command.
- Bot Commands: The bot can respond to various commands.
- Welcome Message: Welcomes new users to the server.
- Update Users: Keeps the user list updated.
- Add Role: Assigns roles to users.
- Java 17 or higher
- Maven
- A Discord bot token
- Clone the repository.
- Set the
DISCORD_TOKENenvironment variable to your Discord bot token. - Run the application using
./gradlew bootRun.