Free & Open Source

Basely – Java Discord Bot Template with JDA and Slash Commands

Java Discord bot template built with JDA including slash commands, event handling, and a scalable architecture for building bots faster.

Java · JDA · Slash Commands · Event System · Production-ready

See It in Action

Example Discord bot commands and responses built using Java and JDA with slash command support.

Discord bot ping command response using Java JDA

What You Get

Basely is a Java Discord bot template built with JDA that provides ready-to-use command handling, event system, and scalable architecture for building Discord bots.

  • Slash command handling system with clean routing
  • Event listener architecture for scalable bot logic
  • Pre-built commands like ping, help, and reminders
  • Background job support for scheduling tasks
  • Clean modular structure ready for scaling
  • JDA setup configured and ready to extend

Use Cases

Community Bots

Build Discord bots for communities with moderation, utilities, and automation features.

Learning Projects

Learn how to build a Discord bot using Java and JDA with a clean starter structure.

Automation Bots

Create bots that automate reminders, tasks, and scheduled actions using background jobs.

Custom Bot Systems

Use as a base to build advanced bots with databases, APIs, and integrations.

Without vs With Basely

Without Basely

  • Manual Discord bot setup and JDA configuration
  • Rewriting command handling for every project
  • No clear structure for scaling bot features
  • Time lost wiring events and commands together
  • Messy architecture as the bot grows

With Basely

  • JDA bot setup ready out of the box
  • Structured command handling system included
  • Clean modular architecture for scaling
  • Pre-built commands to start immediately
  • Focus on building features instead of setup

Key Features

Slash Command System

Structured command handling with clean routing and separation.

Event Listener Architecture

Handle Discord events using a modular and scalable listener setup.

Background Jobs Support

Schedule reminders and tasks with built-in background execution.

Modular Code Structure

Organized project layout that scales as your bot grows.

Ready-to-Use Commands

Includes ping, help, and reminder commands to get started quickly.

JDA Integration Setup

Pre-configured JDA setup so you can focus on building features.

Project Structure

Java Discord bot project structure using JDA

Command separation

Commands are organized cleanly for easy addition and maintenance.

Event driven design

Listeners are structured to handle Discord events in a scalable way.

Modular layout

Clear package structure that grows with your bot features.

Quick Start

1. Clone the repository

Clone Basely from GitHub and open it in your IDE.

2. Configure your bot

Add your Discord bot token and update basic settings in the config file.

3. Run the application

Start the project and connect your bot to Discord.

4. Start building commands

Add new commands using the existing command structure and extend features easily.

Bot Commands

Pre-built Discord bot commands implemented using JDA including utility, moderation, and automation commands.

Utility

CMD !ping

Check bot latency.

CMD !help

List available commands.

CMD !userinfo @user

Show information about a user.

CMD !serverinfo

Show information about the server.

Moderation

CMD !ban @user

Ban a user from the server.

CMD !kick @user

Kick a user from the server.

CMD !warn @user reason

Warn a user and store infraction.

CMD !infractions @user

View stored infractions from database.

Automation

CMD !setwelcome

Configure welcome messages for new users.

CMD !remind 21:00 "msg"

Schedule reminders using background jobs.

Related Guides

Start building your Java Discord bot with JDA

Basely gives you a clean Java starter with command handling and scalable structure. Set up in minutes and start building real bot features.

Free and open source