How 510208/cfbot works
CfBot is a Discord bot for Minecraft-community server administration and member services. A user or administrator interacts through Discord commands, messages, reactions, and ticket controls; the bot dispatches these through its loaded cogs, which perform community workflows and return Discord responses or update server state. A key domain workflow is linking Discord identities to Minecraft players, looking up player data, then presenting results. The tree and README identify additional cogs, but their implementations were not sampled, so their detailed wiring is not asserted.
Main entry points: main.py Bot entry and dispatch · ptersearch.py Player search · mcsm_client.py Identity and player client · discordcore.py Pterodactyl lookup
Components 21
Bot runtime
- Bot entry and dispatch
main.py - Bot configuration
cfg.yml
Community features
- Announcements
Cogs/annou/annou.py - Maintenance status
Cogs/annou/annou_stat.py - Support tickets
Cogs/tickets/ticket.py - Reaction roles
Cogs/reaction_roles/reaction_roles.py - Welcome messages
Cogs/welcome.py - Automatic replies
Cogs/auto_reply.py - About command
Cogs/about/about.py
Server operations
- Automatic deletion
Cogs/auto_delete.py - Discord logging
Cogs/dclogging.py - Server statistics
Cogs/serverstats/serverstats.py - Pterodactyl integration
Cogs/pterodactyl.py
Minecraft identity
- Player search
Cogs/ptersearch.py - Identity and player client
plugins/mcsm_client.py - Pterodactyl lookup
plugins/discordcore.py - Player mappings
databases/playermapping.db
Other components
- Discord members
- Bot administrators
- Discord platform
- Minecraft and MCSM services
Connections 35
- Bot administrators → Bot entry and dispatch: admin commands
- Discord members → Bot entry and dispatch: bot interactions
- Bot entry and dispatch → Discord platform: connects to
- Bot entry and dispatch → Bot configuration: reads settings
- Bot entry and dispatch → Announcements: loads cog
- Bot entry and dispatch → Maintenance status: loads cog
- Bot entry and dispatch → Support tickets: loads cog
- Bot entry and dispatch → Reaction roles: loads cog
- Bot entry and dispatch → Welcome messages: loads cog
- Bot entry and dispatch → Automatic replies: loads cog
- Bot entry and dispatch → About command: loads cog
- Bot entry and dispatch → Automatic deletion: loads cog
- Bot entry and dispatch → Discord logging: loads cog
- Bot entry and dispatch → Server statistics: loads cog
- Bot entry and dispatch → Pterodactyl integration: loads cog
- Bot entry and dispatch → Player search: loads cog
- Announcements → Discord platform: publishes updates
- Maintenance status → Discord platform: edits status message
- Support tickets → Discord platform: creates and closes tickets
- Reaction roles → Discord platform: assigns roles
- Welcome messages → Discord platform: welcomes members
- Automatic replies → Discord platform: sends replies
- Automatic deletion → Discord platform: deletes messages
- Discord logging → Discord platform: records events
- Server statistics → Discord platform: updates channel names
- Pterodactyl integration → Minecraft and MCSM services: manages servers
- Bot administrators → Player search: requests sync
- Discord members → Player search: requests lookup
- Player search → Identity and player client: syncs identities
- Player search → Pterodactyl lookup: looks up mappings
- Identity and player client → Minecraft and MCSM services: fetches identity data
- Pterodactyl lookup → Minecraft and MCSM services: queries panel API
- Identity and player client → Player mappings: reads and writes mappings
- Pterodactyl lookup → Player mappings: reads and writes mappings
- Player search → Discord platform: returns player results