A Discord bot for the 42 community, built in Java with JDA.
This bot is currently running on the following Discord server: https://discord.gg/zMu5ETuawn
42bot is a lightweight, modular Discord bot designed to support the 42 network. It is built using Java 21, JDA (Java Discord API), and JDBI for database access, with support for both SQLite and MySQL.
- Language: Java 21
- Build: Maven
- Discord API: JDA 6.1.2
- Database: SQLite / MySQL (via JDBI 3 + HikariCP)
- Logging: SLF4J / Logback
- Slash command support
- Persistent storage with connection pooling
- Modular command architecture
- Configurable logging
- Java 21 or higher
- Maven 3.8+
mvn clean packageThe shaded JAR will be produced in the target/ directory as 42bot.jar.
The bot expects runtime configuration (such as the Discord token and database credentials) to be provided through environment variables or an external configuration file. Make sure these are set before starting the bot.
ISC