Discord Bot Boilerplate (Spring Boot + JDA)
๐ Discord Bot Boilerplate (Spring Boot + JDA)
Build powerful Discord bots with Java + Spring Boot โ production-ready, scalable, and easy to extend.
Stop wasting time wiring commands, persistence, and event handling. This starter kit gives you a solid foundation with built-in moderation, reminders, and server customization features โ so you can focus on your botโs unique personality.
๐ฅ Why this boilerplate?
Most Discord bot tutorials stop at simple commands. This boilerplate goes further:
- โ
Clean command system with prefix support (
!help
,!ping
) - โ Built-in moderation (ban, kick, warn, infractions) with database persistence
- โ
Reminders & scheduling with Springโs
@Scheduled
jobs - โ Server-ready setup (welcome messages, role management, info commands)
- โ Spring Boot + JDA foundation โ easy to extend with REST APIs, services, or admin panels
Whether youโre a developer, freelancer, or server owner, this saves weeks of repetitive setup.
๐ฆ Whatโs included?
Core Features
- Command system with prefix (
!help
,!ping
) - User & server info commands
- Welcome system with customizable messages
- Role management (assign/remove roles)
Moderation
- Ban / Kick commands
- Warn system (
!warn @user reason
) - Infractions tracking (
!infractions @user
) - Logs stored in MySQL (or H2 for testing)
Reminders & Scheduling
- Personal reminders (
!remind 21:00 "Go study!"
) - Daily reminders with scheduled jobs
- Automatic DM notifications
Database Ready
- Built with Spring Data JPA
- Default MySQL integration
- Optional H2 in-memory DB for instant setup
๐ Clean Project Structure
command/ โ All bot commands (Ban, Warn, Help, etc.)
listener/ โ Discord event listeners
entities/ โ JPA entities (GuildSettings, Reminder, Infraction)
repositories/ โ Spring Data repositories
jobs/ โ Scheduled tasks
services/ โ Business logic layer
โ๏ธ Setup Instructions
-
Unzip & Open
- Download and extract
discord-bot.zip
- Open in your IDE
- Download and extract
-
Configure
application.properties
discord.token=YOUR_DISCORD_BOT_TOKEN spring.datasource.url=jdbc:mysql://localhost:3306/your_db spring.datasource.username=root spring.datasource.password=YOUR_PASSWORD
-
Run
- Terminal:
./mvnw spring-boot:run
- Or IDE โ Run as โ Spring Boot App
- Terminal:
๐ฏ Who is this for?
โ๏ธ Developers โ Skip boilerplate, focus on unique features
โ๏ธ Freelancers โ Deliver bots faster to clients
โ๏ธ Server Owners โ Launch a customizable bot foundation
โ๏ธ Students & Learners โ Learn Spring Boot + JDA with real-world code
๐ ๏ธ Roadmap (Free Updates ๐)
- Role persistence โ restore roles when users rejoin
- Server Settings REST API โ manage prefixes/welcome via HTTP
- Command permissions โ restrict sensitive commands to admins
๐ฆ Youโll Get
- โ Complete Spring Boot project (source code)
- โ Ready-to-run Discord bot with MySQL integration
- โ MIT License
- โ Future updates + improvements
๐ง Support
Need help or want custom features?
๐ฉ boileragents@gmail.com
โก Build your next-gen Discord bot in hours instead of weeks.
๐ Get the Discord Bot Boilerplate today and start coding smarter!
Complete Spring Boot project (source code) with MIT License