A multipurpose Discord bot.
Find a file
2026-03-12 08:36:19 +00:00
doc Added additional responses for chainsaw and power keywords (1.4.6) 2026-01-25 00:17:59 +00:00
src Updated repeating info messages for command and listener on ready 2026-03-12 08:36:19 +00:00
.gitignore Test 2025-12-25 23:06:34 +00:00
pom.xml Updated Maven ver 2026-01-25 00:20:49 +00:00
README.md Added README 2026-02-16 01:51:42 +00:00

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 dont use Mongo features, you can leave Mongo variables unset (depending on how the bot is coded to handle missing DB config).


Running Locally

  1. Clone the repo
  2. Set your environment variables (see above)
  3. Build and run

Build

mvn clean package