Skip to content

42-stud/discord-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-bot

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

Overview

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.

Tech Stack

  • Language: Java 21
  • Build: Maven
  • Discord API: JDA 6.1.2
  • Database: SQLite / MySQL (via JDBI 3 + HikariCP)
  • Logging: SLF4J / Logback

Features

  • Slash command support
  • Persistent storage with connection pooling
  • Modular command architecture
  • Configurable logging

Requirements

  • Java 21 or higher
  • Maven 3.8+

Build

mvn clean package

The shaded JAR will be produced in the target/ directory as 42bot.jar.

Configuration

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.

License

ISC

About

Discord bot that links users to a 42 Intra account and automatically assigns roles and updates nicknames based on verified login data.

Resources

Stars

Watchers

Forks

Contributors

Languages