A Discord bot for managing Clash of Clans recruitment posts with automatic scheduling.
- Recruitment Posts: Create formatted clan recruitment posts with
/post-clan - Post Editing: Edit existing recruitment posts with
/post-edit - Auto-Posting: Automatic daily recruitment posts managed through MongoDB
- MongoDB Persistence: Save recruitment templates for reuse
The bot includes an automatic recruitment posting system that:
- Posts recruitment messages at scheduled times daily
- Managed entirely through MongoDB (no Discord commands)
- Reloads schedules from database every 5 minutes
- Posts in Eastern timezone (America/New_York)
Auto-recruitment is managed by adding/editing documents in the MongoDB auto_recruit collection:
{
"discord_id": "123456789012345678",
"clan_tag": "#2PYLUR2PV",
"channel_id": "987654321098765432",
"guild_id": "111222333444555666",
"post_time": "14:00",
"timezone": "America/New_York",
"enabled": true
}See docs/manual_auto_recruit_example.md for detailed instructions.
-
Create a
.envfile with:DISCORD_TOKEN=your_bot_token MONGODB_URI=your_mongodb_uri -
Install dependencies:
pip install -r requirements.txt
-
Run the bot:
python main.py
recruit_data: Stores recruitment post templatesauto_recruit: Stores automatic posting schedulesbutton_store: Internal button state management
/post-clan [save]- Create a recruitment post/post-edit- Edit your last recruitment post