A comprehensive Discord bot built with Node.js and the Eris library, featuring an extensive economy system with Arabic language support. This bot provides various financial games, investment simulations, and administrative customization options for Discord servers.
- Complete Economy System - Full-featured financial management with credits, loans, and transactions
- Interactive Canvas Graphics - Beautiful SVG-based images with customizable colors and themes
- Arabic Language Support - Native Arabic commands and interface
- Multiple Mini-Games - Dice games, luck games, investment simulations, and trading
- Advanced Admin Panel - Extensive customization options for server administrators
- MongoDB Integration - Persistent data storage with user profiles and server settings
- Cooldown System - Anti-spam protection with configurable cooldowns
- Built with Eris - Faster and more efficient than discord.js
- Canvas Image Generation - Dynamic user profile cards and game result images
- قروشي (
دراهمي
,فلوسي
,مالي
,رصيد
,رصيدي
) - Check your balance with a beautiful profile card - راتب (
راتبي
,الراتب
) - Claim daily salary with random job assignments - نرد (
النرد
,dice
,dise
) - Dice gambling game with betting options - حظ (
حظي
) - Luck-based reward game - بخشيش (
بخشيشي
) - Random tip/reward system
- استثمار (
الاستثمار
,ستثمار
,استثمر
) - Investment simulation with profit/loss charts - تداول (
اتداول
) - Trading system with market fluctuations - قرض (
اقرضني
,القرض
) - Loan system for borrowing money - سداد (
تسديد
,سدد
) - Loan repayment system - نهب (
سرقه
,زرف
) - Robbery system with risk/reward mechanics
- توب (
حرامية
,حراميه
) - Richest players leaderboard or top robbers leaderboard - وقت (
الوقت
,اوقات
) - Check command cooldowns
- +setbank - Set the designated economy channel
- +setlog - Configure logging channel for transactions
- +manager (
+مدير
) - Add/remove bot administrators
- +togembed (
+togimage
,+togrobbery
,+togtransactions
,+togloan
) - Toggle various bot features
- +color1 (
+color2
,+tcolor
,+ecolor
) - Set theme colors (hex format)
- +loanamount (
+loana
) - Configure maximum loan amount ($500-$1,000,000) - +loantime (
+loant
) - Set loan duration (in minutes) - +robper - Set robbery success percentage (0.0-1.0)
- +setimage - Configure custom background images
-
Clone the repository
git clone https://github.com/al7arthy/DiscordFinanceBot.git cd discord-finance-bot
-
Install dependencies
npm install
-
Configure the bot
- Edit
config.json
and add your bot credentials:
{ "token": "YOUR_BOT_TOKEN", "guild": "YOUR_GUILD_ID", "owners": ["YOUR_USER_ID"] }
- Edit
-
Start MongoDB
- Ensure MongoDB is running on
localhost:27017
- Or modify the connection string in
index.js
for your setup
- Ensure MongoDB is running on
-
Run the bot
node index.js
-
Discord Bot Setup
- Create a bot at Discord Developer Portal
- Copy the bot token to
config.json
- Enable necessary intents (Server Members Intent recommended)
-
Guild Configuration
- Add your Discord server ID to the
guild
field inconfig.json
- Add owner user IDs to the
owners
array
- Add your Discord server ID to the
-
Database Setup
- Install MongoDB locally or use MongoDB Atlas
- Default connection:
mongodb://localhost:27017/LancerStore
- Modify connection string in
index.js
if needed
Ensure your bot has the following permissions:
- Send Messages
- Embed Links
- Attach Files
- Read Message History
- Use External Emojis
- Manage Messages (optional, for cleanup)
- eris (^0.17.2) - Discord API library
- mongoose (^8.4.1) - MongoDB object modeling
- canvas (^2.11.2) - Image generation and manipulation
- mongoose-bignumber (^2.0.0) - BigNumber support for large currency values
- mongoose-long (^0.8.0) - Long number support
- date-fns (^3.6.0) - Date manipulation utilities
- numeral (^2.0.6) - Number formatting
- svg2img (^1.0.0-beta.2) - SVG to image conversion
- Customize colors using admin commands (
+color1
,+color2
,+tcolor
) - Upload custom background images for profile cards
- Modify SVG templates in command files for different designs
- Adjust reward amounts in individual command files
- Configure cooldown timers for each game
- Set minimum/maximum betting amounts
- All user-facing messages are in Arabic
- Easy to modify text strings in command files
- Admin commands use English prefixes with Arabic responses
- Fork the repository
- Create a feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
Ahmad Alharthy
- Developer of ErisBank Discord Bot
- Built with ❤️ using Node.js and Eris
This is a base template that you can use to expand the bot (which means it is not finished), and it is free for anyone to use. The bot is designed for entertainment purposes and should not be used for real financial transactions.
- Marriage system expansion
- Shop and inventory system
- More complex trading algorithms
- Multi-language support
- Web dashboard for server management
- Advanced statistics and analytics
⭐ If you found this project helpful, please consider giving it a star!