Sprida is a powerful and extendable Discord bot built using Spring Boot and JDA. It uses PostgreSQL for persistent storage and Lombok to minimize boilerplate code.
- ✅ Custom commands for engaging with users
- 🗄️ PostgreSQL database integration
- 🧰 Lombok to reduce repetitive code
- 🛠️ Admin panel (coming soon!) for bot configuration
- Java 11 or newer
- PostgreSQL
- Gradle
- Discord bot token
-
Clone the repository:
git clone https://github.com/range79/sprida.git cd sprida
-
Configure
application.yml
:Create and update
src/main/resources/application.yml
:spring: datasource: url: jdbc:postgresql://localhost:5432/dbname_in_compose_yaml username: your_username password: your_password discord: bot: server_id: your_server_id token: your_discord_bot_token log: channel_id: your_log_channel_id allow-connect-other-servers: true app: version: "${version}" admin-name: #admin name admin-pass: # admin password mod-name: # moderator name mod-pass: # moderator password
-
(Optional) Use Docker Compose for PostgreSQL:
Create a
compose.yaml
file in the root directory:version: '3.9' services: db: image: postgres restart: always shm_size: 128mb environment: POSTGRES_USERNAME: your_username POSTGRES_PASSWORD: your_password POSTGRES_DB: dbname_in_compose_yaml ports: - "5432:5432"
-
Build the project:
./gradlew build
-
Run the bot:
./gradlew bootRun
-
🎉 Your bot will start and connect to Discord!
Dark Mode | Light Mode |
---|---|
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
This project is licensed under the MIT License.
For latest updates and changes, check out the CHANGELOG.md.