This Discord bot tracks staff activity across specified channels in a Discord server. It counts messages sent by staff members and generates an activity leaderboard.
- Tracks activity based on specified roles (Staff for example)
- Checks activity in specified channels, including text channels, threads, and forum channels
- Generates an activity leaderboard for a configurable number of days
- Handles rate limiting to avoid Discord API restrictions
- Authorizes command usage based on specified roles
- Python 3.8 or higher
- discord library
- configparser library
-
Clone this repository
-
Install the required packages:
pip install discord configparser
-
Create a
db_config.ini
file with the following structure:
[activity]
DISCORD_BOT_TOKEN = your_bot_token_here
DAYS_TO_CHECK = 30
RATE_LIMIT_DELAY = 5
ROLES_TO_TRACK = role_id1,role_id2,role_id3
AUTHORIZED_ROLES = auth_role_id1,auth_role_id2
CHANNELS_TO_CHECK = channel_id1,channel_id2,channel_id3