A complete, multi-purpose Discord bot built with Discord.js v14. This bot features a robust command handler, universal economy system, social features, moderation tools, leveling, tickets, and more.
🌐 Website: imperium.gg
- Universal Economy: Global balance across all servers with banking, working, and trading.
- Social System: Profiles, marriage, family trees, and customizable bios.
- OwO-Style Commands: Actions (hug, kiss), emotes, gambling, and animal collection.
- Advanced Moderation: Ban, kick, timeout, nuke, lock, and warning system.
- Leveling System: XP tracking, rank cards, and level-up announcements.
- Ticket System: Advanced support ticket management with transcripts and DM support (Modmail).
- Utility: Image generation (quotes), polls, user/server info, and more.
- Dynamic Prefix: Customizable prefix per server (default:
,). - Database: SQLite-based persistence using
better-sqlite3.
- Runtime: Node.js (v16.9.0 or higher)
- Library: Discord.js v14
- Database: Better-SQLite3
- Image Processing: Canvas
- Process Manager: PM2 (optional, for production)
- Node.js v16.9.0 or higher
- A Discord Bot Token (Get it from the Discord Developer Portal)
- Privileged Intents: You must enable Message Content Intent, Server Members Intent, and Presence Intent in the Discord Developer Portal.
-
Clone the repository
git clone https://github.com/yourusername/discord-bot-2.0.git cd discord-bot-2.0 -
Install dependencies
npm install
Note: This project uses
canvas, which may require additional system dependencies on Linux (e.g.,libcairo2-dev). -
Configure Environment Variables
- Rename
.env.exampleto.env. - Open
.envand paste your Discord Bot Token.
DISCORD_TOKEN=your_token_here
- Rename
-
Start the Bot
- Development Mode:
npm start
- Production Mode (using PM2):
npm install -g pm2 pm2 start ecosystem.config.js pm2 save pm2 logs
- Development Mode:
The default prefix is ,. You can change it using ,setprefix.
,balance- Check wallet and bank balance.,deposit <amount|all>- Deposit money into the bank.,withdraw <amount|all>- Withdraw money from the bank.,pay <user> <amount>- Transfer money to another user.,work- Work to earn money.,daily- Claim daily reward.,rob <user>- Attempt to rob a user.,eco <add|remove|set> <user> <amount>- Admin economy management.
,profile- View your profile (Bio, Partner, Family, Stats).,setbio <text>- Set your profile biography.,marry <user>- Propose to a user.,divorce- Divorce your partner.,adopt <user>- Adopt a child.,disown <user>- Disown a child.,family- View your family tree.- Actions:
,hug,,kiss,,slap,,pat,,cuddle,,poke,,kill. - Emotes:
,dance,,cry. - Gambling:
,slots,,coinflip. - Animals:
,hunt,,zoo,,sell.
,ban <user>- Ban a member.,kick <user>- Kick a member.,timeout <user> <duration>- Timeout a member.,unban <userID>- Unban a user.,warn <user> <reason>- Warn a user.,warnings <user>- Check user warnings.,clearwarns <user>- Clear user warnings.,nuke- Delete and recreate the current channel.,purge <amount>- Delete messages.,lock/,unlock- Lock/Unlock channel.
,tsetup- Setup the ticket panel.,tclose- Close a ticket.,tadd <user>- Add a user to a ticket.,tremove <user>- Remove a user from a ticket.- Modmail: DM the bot to open a support ticket.
,quote <text>- Generate a quote image (or reply to a message).,poll <question>- Create a poll.,say <message>- Make the bot speak (supports embeds).,avatar <user>- View user avatar.,banner <user>- View user banner.,serverinfo/,userinfo- View stats.,config- Configure server settings (Welcome, Logs, Leveling).,setup- Interactive server setup.
- Check if the bot is online.
- Ensure Message Content Intent is enabled in the Developer Portal.
- Check console for errors.
- Ensure the
datafolder exists. - If you see
SQLITE_ERROR, try restarting the bot to apply migrations. - Git Conflict? If
git pullfails ondata/bot.sqlite, run:git rm --cached data/bot.sqlite git pull
- Ensure the bot has
Administratoror relevant permissions. - Ensure the bot's role is higher than the target user.
Contributions are welcome! Please feel free to submit a Pull Request.
© 2025 IMPERIUM. All Rights Reserved.
This project is proprietary and confidential. Unauthorized copying, distribution, modification, or use of this file, via any medium, is strictly prohibited without the express written permission of the owner.
