Skip to content

TERIMAKASIH SUDAH PAKAI SCRIPT BOT BY AZZAM CODEX - JANGAN DIJUAL YA PUQIMAK

Notifications You must be signed in to change notification settings

AzzamCyber/Discord-Bot-Game

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Discord Economy Bot ๐ŸŽฎ

Discord Node.js SQLite JavaScript

A feature-rich Discord economy bot with slash commands, mining system, shop, and games!

Made with โค๏ธ by Azzam Codex x Nata Dev

โœจ Features

๐Ÿ’ฐ Economy System

  • โ›๏ธ Mining with cooldown system and special bonuses
  • ๐ŸŽ Daily Rewards with streak bonuses
  • ๐Ÿ“Š Level & EXP progression system
  • ๐Ÿ’Ž Diamond Currency for premium items

๐Ÿ›’ Shop & Inventory

  • ๐Ÿ›๏ธ Interactive Shop with autocomplete
  • ๐ŸŽ’ Inventory System for tools and boosts
  • โš’๏ธ Pickaxe Upgrades with mining efficiency bonuses
  • โœจ Special Items and role rewards

๐ŸŽฎ Mini Games

  • ๐ŸŽฐ Slot Machine with multiplier rewards
  • ๐Ÿช™ Coin Flip with 50/50 chance
  • ๐Ÿ’ฐ Betting System with risk management

๐Ÿ† Social Features

  • ๐Ÿ“ˆ Leaderboard top 10 players
  • ๐Ÿ‘ค User Profiles with detailed stats
  • ๐ŸŒŸ Special User exclusive benefits

๐Ÿ”ง Technical Features

  • โšก Slash Commands modern Discord integration
  • ๐Ÿ’พ SQLite Database reliable data storage
  • ๐Ÿ”„ Cooldown System balanced gameplay
  • ๐ŸŽจ Custom Embeds with beautiful footer
  • ๐Ÿš€ Error Handling smooth user experience

๐Ÿ“ธ Preview

Mining Command Shop System Leaderboard

๐Ÿš€ Quick Start

Prerequisites

  • Node.js 16.9.0 or higher
  • Discord Bot Token
  • Git

Installation

  1. Clone the repository

    git clone https://github.com/your-username/discord-economy-bot.git
    cd discord-economy-bot
  2. Install dependencies

    npm install
  3. Configuration

    • Rename config.example.js to config.js
    • Fill in your bot credentials:
    module.exports = {
      BOT_TOKEN: "your-bot-token-here",
      CLIENT_ID: "your-client-id-here",
      SPECIAL_USER_ID: "your-special-user-id",
      // ... other config
    };
  4. Deploy Commands

    npm run deploy
  5. Start the Bot

    npm start

    Or use the batch file on Windows:

    start.bat

๐Ÿ“‹ Command List

๐Ÿ’ฐ Economy Commands

Command Description Options
/mine Mine for coins (5min cooldown) None
/daily Claim daily rewards None
/balance Check user balance user (optional)

๐Ÿ›’ Shop Commands

Command Description Options
/shop View all available items None
/buy Purchase items from shop item_id (autocomplete)

๐ŸŽฎ Game Commands

Command Description Options
/slots Play slot machine bet (min 10)
/coinflip Coin flip game bet, choice (heads/tails)

๐Ÿ† Info Commands

Command Description Options
/leaderboard Top 10 players None
/help Show help menu None

โš™๏ธ Configuration

Bot Setup

  1. Go to Discord Developer Portal
  2. Create a new application
  3. Go to "Bot" section and create a bot
  4. Copy the token to config.js
  5. Enable required intents:
    • Message Content Intent
    • Server Members Intent

Invite Bot to Server

Use this invite link (replace CLIENT_ID with your bot's client ID):

https://discord.com/oauth2/authorize?client_id=YOUR_CLIENT_ID&permissions=2147485696&scope=bot%20applications.commands

๐Ÿ—ƒ๏ธ Database Schema

Users Table

Column Type Description
user_id TEXT PRIMARY KEY Discord User ID
username TEXT Discord Username
coins INTEGER User's coins balance
diamonds INTEGER User's diamonds balance
level INTEGER User's current level
exp INTEGER Current experience points
last_mine TEXT Last mining timestamp
last_daily TEXT Last daily reward timestamp
inventory TEXT JSON string of user's inventory
created_at DATETIME Account creation date

Shop Table

Column Type Description
item_id TEXT PRIMARY KEY Unique item identifier
name TEXT Display name of item
price INTEGER Item price in coins
item_type TEXT Type of item (tool/boost/role)
description TEXT Item description

๐ŸŽฏ Special Features

๐ŸŒŸ Special User Benefits

Users with the configured SPECIAL_USER_ID receive:

  • +50 Bonus Coins on every mine
  • +200 Extra Coins on daily rewards
  • +3 Extra Diamonds on daily rewards
  • Special Messages and recognition
  • Priority Access to new features

โš’๏ธ Pickaxe System

Pickaxe Price Bonus Description
Basic ๐Ÿช™ 100 +10% Starter pickaxe
Iron ๐Ÿช™ 500 +25% Improved efficiency
Diamond ๐Ÿช™ 2000 +50% Maximum mining power

๐Ÿ”ง Development

Project Structure

discord-economy-bot/
โ”œโ”€โ”€ index.js          # Main bot file
โ”œโ”€โ”€ config.js         # Configuration file
โ”œโ”€โ”€ commands.js       # Slash commands definitions
โ”œโ”€โ”€ deploy-commands.js # Command deployment script
โ”œโ”€โ”€ economyManager.js # Economy system logic
โ”œโ”€โ”€ database.js       # Database management
โ”œโ”€โ”€ package.json      # Dependencies and scripts
โ””โ”€โ”€ README.md        # This file

Adding New Commands

  1. Add command to commands.js:
newCommand: {
  data: new SlashCommandBuilder()
    .setName('newcommand')
    .setDescription('Command description'),
  execute: async (interaction, economy, database) => {
    // Command logic here
  }
}
  1. Redeploy commands:
npm run deploy

๐Ÿ› Troubleshooting

Common Issues

โŒ Commands not appearing

  • Run npm run deploy to register commands
  • Wait up to 1 hour for global command propagation

โŒ Bot not responding

  • Check if bot token is correct in config.js
  • Verify bot has proper permissions in server

โŒ Database errors

  • Ensure write permissions in bot directory
  • Check if economy.db is not corrupted

โŒ Cooldown not working

  • Verify system time is correct
  • Check database connection

๐Ÿค Contributing

We welcome contributions! Please feel free to submit pull requests or open issues for bugs and feature requests.

Contribution Guidelines

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/AmazingFeature)
  3. Commit your changes (git commit -m 'Add some AmazingFeature')
  4. Push to the branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

๐Ÿ“ License

This project is licensed under the MIT License - see the LICENSE file for details.

๐Ÿ‘ฅ Authors

  • Azzam Codex - Initial work & core development
  • Nata Dev - Feature development & maintenance

๐Ÿ™ Acknowledgments

  • Discord.js community for excellent documentation
  • Contributors and testers
  • Everyone who supported this project

โญ Don't forget to star this repository if you found it helpful!

Made with โค๏ธ by Azzam Codex x Nata Dev

Footer

About

TERIMAKASIH SUDAH PAKAI SCRIPT BOT BY AZZAM CODEX - JANGAN DIJUAL YA PUQIMAK

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published