- โจ Main Features
- ๐ Quick Installation
- โ๏ธ Configuration
- ๐ Modules and Commands
- ๐ฏ Usage Guide
- ๐ง Advanced Configuration
- ๐ค Contributing
- ๐ License
- Automatic progression: Gain XP per message sent
- Level system with 50+ tiers
- Automatic roles by level
- Interactive leaderboard with ranking
- Admin commands to manage XP
- Intuitive command creator with interactive interface
- Global and server commands
- Advanced search and filtering system
- Export commands to Markdown file
- Complete management via modern interface
- Kick/Ban with reasons and durations
- Temporary mute with automatic management
- Warning system with history
- Bulk message cleanup
- Detailed moderation logs
- Easy creation of contests
- Automatic management of draws
- Reaction system to participate
- Automatic notifications of results
- Interactive Rock-Paper-Scissors
- Coin Flip with buttons
- Random fact generator
- Jokes and entertainment
- Automatic creation of voice channels
- Custom permission management
- Automatic deletion when empty
- Interactive poll creation
- Modification of existing votes
- Real-time results
- Detailed server information
- Complete user profile
- Bot information and statistics
- Context menu for quick actions
- Python 3.8+ installed
- Discord Bot created on Discord Developer Portal
- Git (optional)
- Clone the repository
git clone https://github.com/Axekinn/Simple-Bot-Discord.git
cd Simple-Bot-Discord- Install dependencies
pip install -r requirements.txt- Configure files
# Copy example files
cp .env.example .env
cp config.json.example config.json
cp commands.json.example commands.json
cp xp_data.json.example xp_data.json
cp giveaways.json.example giveaways.json
cp role_reactions.json.example role_reactions.json- Configure the token
# Edit the .env file
TOKEN=YOUR_DISCORD_BOT_TOKEN- Start the bot
python bot.pyTOKEN=YOUR_DISCORD_BOT_TOKEN{
"prefix": "!",
"owner_id": "YOUR_DISCORD_ID",
"description": "A simple and powerful Discord bot",
"website": "https://your-website.com/",
"discord_invite": "https://discord.gg/your-invite",
"github": "https://github.com/your-username/your-repo"
}| Command | Description | Permissions |
|---|---|---|
/xp [member] |
Shows XP and level of a member | Everyone |
/leaderboard |
Server ranking by level | Everyone |
/resetxp <member> |
Resets a member's XP | Administrator |
/setwords <member> <words> |
Sets total word count | Administrator |
/recalculatelevels |
Recalculates all levels | Administrator |
/xpinfo |
Information about XP system | Everyone |
/milestones |
Shows all level milestones | Everyone |
/setlevelup [channel] |
Configures notification channel | Administrator |
/setlevelrole <level> <role> |
Assigns a role to a level | Administrator |
/updateallroles |
Updates all roles by level | Administrator |
๐ฏ Progression System
- XP Gain: 1 XP per word written in a message
- Cooldown: 1 minute between XP gains
- Level Formula:
level = floor(sqrt(total_words / 100)) - Maximum levels: 50+ tiers available
| Command | Description | Permissions |
|---|---|---|
/create_command |
Command creation interface | Administrator |
/commands [scope] [filter] |
Interactive command browser | Everyone |
๐จ Advanced Features
- Modern interface with buttons and selectors
- Advanced search by name, description or content
- Markdown export of commands
- Category management (global/server)
- Smart pagination system
| Command | Description | Permissions |
|---|---|---|
/kick <user> [reason] |
Kicks a member | Kick Members |
/ban <user> [reason] |
Bans a member | Ban Members |
/unban <user> |
Unbans a member | Ban Members |
/timeout <user> <duration> |
Temporarily mutes | Moderate Members |
/untimeout <user> |
Removes timeout | Moderate Members |
/purge <number> |
Deletes messages | Manage Messages |
/warn <user> [reason] |
Warns a member | Kick Members |
โก Features
- Automatic security checks
- Detailed action logs
- Complete error handling
- Built-in administrator protection
| Command | Description | Permissions |
|---|---|---|
/giveaway <duration> <prize> |
Creates a new giveaway | Manage Messages |
/gend <message_id> |
Ends a giveaway | Manage Messages |
/greroll <message_id> |
Rerolls the draw | Manage Messages |
๐ Features
- Automatic draw management
- Reaction interface ๐
- Winner notifications
- Persistent data storage
| Command | Description | Permissions |
|---|---|---|
/randomfact |
Random fact in English | Everyone |
/coinflip |
Interactive coin flip | Everyone |
/rps |
Rock-paper-scissors | Everyone |
๐ฏ Interactive Games
- Discord button interface
- Animations and reactions
- Score system (coming soon)
| Command | Description | Permissions |
|---|---|---|
/help |
List of available commands | Everyone |
/botinfo |
Detailed bot information | Everyone |
/serverinfo |
Server information | Everyone |
/whois <member> |
Detailed member profile | Everyone |
/ping |
Bot latency | Everyone |
/invite |
Bot invitation link | Everyone |
| Command | Description | Permissions |
|---|---|---|
/voice setup <channel> |
Configures voice system | Administrator |
๐ Features
- Automatic creation of temporary channels
- Custom permissions per user
- Automatic deletion on disconnect
| Command | Description | Permissions |
|---|---|---|
/vote_create <question> |
Creates a poll | Manage Messages |
/vote_edit <message_id> |
Edits an existing vote | Manage Messages |
Configuration via role_reactions.json file
- Automatic role assignment
- Custom reaction interface
- Multi-message management
- Initial configuration
/setlevelup #level-up- Assign roles by level
/setlevelrole level:5 role:@Active Member
/setlevelrole level:10 role:@Contributor
/setlevelrole level:25 role:@Expert- System verification
/milestones # See all milestones
/xpinfo # Detailed information- Launch interface
/create_command-
Follow interactive wizard
- Choose scope (global/server)
- Define command name
- Add description
- Configure response
-
Test and manage
/commands scope:server # View server commands-
Recommended permissions
- Kick Members
- Ban Members
- Manage Messages
- Moderate Members
-
Typical usage
/warn @user reason:Spam
/timeout @user duration:1h reason:Inappropriate behavior
/purge number:10The bot uses SQLite to store:
- XP Data:
xp_data.json - Commands:
commands.json - Giveaways:
giveaways.json - Reactions:
role_reactions.json
Simple-Bot-Discord/
โโโ bot.py # Main file
โโโ requirements.txt # Python dependencies
โโโ .env # Environment variables
โโโ config.json # Bot configuration
โโโ commands.json # Custom commands
โโโ xp_data.json # Experience data
โโโ giveaways.json # Giveaway data
โโโ role_reactions.json # Role/reaction configuration
โโโ discord.log # Bot logs
โโโ database/ # SQLite database
โ โโโ __init__.py
โ โโโ database.db
โ โโโ schema.sql
โโโ cogs/ # Bot modules
โโโ xp.py # Experience system
โโโ command_builder.py # Custom commands
โโโ moderation.py # Moderation
โโโ giveaway.py # Giveaways
โโโ fun.py # Fun commands
โโโ general.py # General commands
โโโ voice_creator.py # Temporary voice channels
โโโ vote.py # Voting system
โโโ whois.py # User information
โโโ role_reaction.py # Role reactions
โโโ owner.py # Owner commands
- โ
Secure token in
.env - โ
Sensitive files in
.gitignore - โ Permission checks on all commands
- โ Protection against infinite loops
- โ Complete error handling
- Local SQLite database for speed
- In-memory cache for frequent data
- Asynchronous loading of modules
- Discord API optimization
# In each cog, modify embed colors
embed = discord.Embed(color=0x3498db) # Blue
embed = discord.Embed(color=0xe74c3c) # Red
embed = discord.Embed(color=0x2ecc71) # Green# In cogs/xp.py, line ~50
XP_PER_WORD = 1 # XP gained per word
XP_COOLDOWN = 60 # Cooldown in seconds
LEVEL_FORMULA = lambda w: math.floor(math.sqrt(w / 100))# Create a new file in cogs/
# Follow template in cogs/template.pyBot offline?
- Check token in
.env - Check bot permissions
- Check
discord.logfor errors
Commands not working?
- Check bot permissions
- Use
/for slash commands - Check intents configuration
XP system inactive?
- Check
message_contentpermissions - Verify intents are enabled
- Check logs for errors
- ๐ Report a bug: GitHub Issues
- ๐ฌ Discord: Join server
- ๐ง Email: axekinn@proton.me
We warmly welcome contributions!
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit changes (
git commit -m 'Add some AmazingFeature') - Push to branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- ๐ Bug fixes
- โจ New features
- ๐ Documentation improvements
- ๐จ UI/UX enhancements
- ๐ง Performance optimizations
- Follow existing code style
- Test all new features
- Document code with comments
- Respect naming conventions
A big thank you to all contributors who helped improve this bot!
- โญ Features: 50+ commands
- ๐ง Modules: 12 cogs
- ๐ XP System: 50+ levels
- ๐ฎ Built-in games: 3+
- ๐จ Moderation tools: 8+
This project is licensed under the MIT License - see the LICENSE file for details.
- ๐ต Complete music player
- ๐ Web dashboard for configuration
- ๐ฏ Mission system and rewards
- ๐ Custom notifications
- ๐ Advanced server statistics
- ๐ฎ Multiplayer mini-games
- ๐ฐ Virtual economy with shop
- ๐ญ Automatic temporary roles
- ๐ฑ Mobile companion app
- ๐ค AI for automatic moderation
- ๐ Complete multi-language support
- โ๏ธ Integrated cloud hosting
- ๐ Advanced analytics
- Discord.py - For the excellent library
- Krypton - For the base template
- Discord Community - For testing and feedback
- Contributors - For their improvements