mirror of
https://github.com/GiornoCsf/DenjiBot.git
synced 2026-05-13 05:26:34 +00:00
A multipurpose Discord bot.
- Java 100%
| doc | ||
| src | ||
| .gitignore | ||
| pom.xml | ||
| README.md | ||
DenjiBot
DenjiBot is a multipurpose Discord bot written in Java. It includes moderation/logging utilities and other general features.
This repo is set up with a dev branch for active development and a main branch for stable releases.
⚠️ Security note: Never commit your Discord token or database credentials. Use environment variables.
Tech Stack
- Java (JDK 17+ recommended)
- Maven
- Discord API library (JDA)
- MongoDB (optional / if enabled by your config)
Features (high level)
- Moderation helpers (roles, logging, admin tools)
- Utility commands
- Extendable command/event structure
(Feature list may grow — PRs welcome.)
Getting Started
1) Requirements
- Java installed (
java -version) - Maven installed (
mvn -v) - A Discord bot application + token (Discord Developer Portal)
- (Optional) MongoDB connection URI if you use DB features
Configuration (Environment Variables)
DenjiBot is configured via environment variables. In IntelliJ, you can set these under:
Run → Edit Configurations → Environment variables
Required / Common
| Variable | Description |
|---|---|
DISCORD_TOKEN |
Your bot token from the Discord Developer Portal |
BOT_MODE |
Your bot mode (example: dev / prod) |
GEN_CHAT_ID |
General chat channel ID (if used by your features) |
MANGA_UPDATE_ID |
Channel ID for manga updates (if used) |
MOD_LOG_ID |
Moderation log channel ID |
MOD_ROLE_ID |
Moderator role ID |
ADMIN_ROLE_ID |
Admin role ID |
Database (if enabled)
| Variable | Description |
|---|---|
MONGO_URI |
MongoDB connection string |
MONGO_DB |
Mongo database name |
If you don’t use Mongo features, you can leave Mongo variables unset (depending on how the bot is coded to handle missing DB config).
Running Locally
- Clone the repo
- Set your environment variables (see above)
- Build and run
Build
mvn clean package