A feature-rich, modular Discord bot built with Discord.js (v14) and Node.js. This project features a fully persistent database-driven RPG economy, asynchronous REST API integrations, native AI capabilities, and server moderation tools.
Powered by MongoDB/Mongoose, users can earn, trade, and gamble virtual currency.
- Core Economy:
/balance,/daily,/work,/pay - Gambling:
/gamble,/slotmachine - Item System:
/shop,/buy,/inventory - Interactive Items:
/fish
/askai: Integrated with Google's Gemini API for dynamic, conversational responses./pokedex: Fetches and parses live data from the official PokéAPI./jail: Utilizes Canvas/Image manipulation APIs and Discord'sAttachmentBuilderto dynamically generate and attach edited images of user avatars.
- Moderation:
/kick,/ban - System Metrics:
/botinfo,/ping - User Data:
/userinfo - Dynamic Help:
/help
- Language: JavaScript (Node.js)
- Library: Discord.js v14 (Slash Commands, EmbedBuilders, DeferReply handling)
- Database: MongoDB Atlas & Mongoose ORM
- Architecture: Modular Command Handler (Dynamically reads, validates, and registers
.jsfiles to the Discord API to prevent crashes).
Want to run this bot yourself? Follow these steps:
git clone https://github.com/madhavcodes25/ZenithBot.git
cd ZenithBotnpm installCreate a .env file in the root directory and add the following keys:
BOT_TOKEN=your_discord_bot_token
CLIENT_ID=your_discord_application_id
MONGODB_URI=your_mongodb_connection_string
GEMINI_API_KEY=your_gemini_api_key
First, push the slash commands to the Discord API, then start the bot:
node build.js
node index.js