A feature-rich Discord bot built using discord.py that helps automate server management, moderation, logging, and GitHub integration. The bot provides a modular architecture using Discord Cogs, making it easy to extend and maintain.
- User moderation commands
- Automated moderation utilities
- Message management
- Server protection features
- Join/Leave event logging
- Moderation action logging
- Server activity tracking
- Welcome messages
- Leave notifications
- Member event handling
- Channel administration commands
- Embedded announcements
- Automated channel utilities
- Bulk message deletion
- Chat cleanup commands
- GitHub repository utilities
- Repository monitoring support
- Developer-focused server tools
The bot automatically cycles through status messages:
- Watching over the Server
- Pushing commits to Main
- Reading README.md
discord-bot/
│
├── main.py
│
├── cogs/
│ └── github.py
│
├── managements/
│ ├── auto_embed.py
│ ├── automod.py
│ ├── channels.py
│ ├── clear_msg.py
│ ├── database.py
│ ├── embedded.py
│ ├── join_leave.py
│ ├── loggingg.py
│ └── moderation.py
│
├── sevices/
│ ├── caching.py
│ ├── database.py
│ ├── github_api.py
│
├── utils/
│ ├── embeds.py
│ ├── heatmap.py
│
├── .env
├── requirements.txt
└── README.md
- Python
- discord.py
- asyncio
- python-dotenv
- SQLite
git clone https://github.com/Enky-yy/github_api_discord_app.git
cd discord-botpython -m venv .venvActivate the environment:
Linux / macOS:
source .venv/bin/activateWindows:
.venv\Scripts\activatepip install -r requirements.txtCreate a .env file:
MY_TOKEN=YOUR_DISCORD_BOT_TOKEN
GITHUB_TOKEN = YOUR_PERSONAL_GITHUB_TOKENpython main.pyIf everything is configured correctly, you should see:
logged in as BotName , yehehe
Slash Commands activated and synced
The bot uses the following intents:
discord.Intents.default()
intents.message_content = True
intents.members = TrueMake sure these intents are enabled in the Discord Developer Portal.
The bot uses Discord Slash Commands:
/command-name
Commands are automatically synchronized on startup.
Never commit your .env file or bot token.
Add the following to .gitignore:
.env
.vscode
__pycache__
*.db
.venv- Ticket system
- Role management system
- Music commands
- Dashboard website
- AI-powered moderation
- GitHub webhook integration
- Server analytics
Harsh Shah