CB42 is a modern Discord community bot built for Python 3.13 and Nextcord 3.2.0.
- Install Python 3.13.
- Run
install.bat. - Copy
.env.exampleto.env. - Put the bot token in
DISCORD_TOKEN. - Enable Server Members Intent and Message Content Intent in the Discord Developer Portal.
- Invite the bot with the
botandapplications.commandsscopes. - Run
start.batorpython main.py.
SQLite is created automatically at data/cb42.sqlite3. There is no database server, account, password, or manual schema setup.
Set TEST_GUILD_ID to a server ID you control while developing. Leave it blank for global application commands.
Interactive help uses a category selector and buttons. Server administration uses an interactive dashboard with live settings. Fun commands use reroll controls. Moderation actions use confirmation controls and context-menu support. Warns, moderation logs, XP, command usage, feedback, server settings, and polls are stored locally.
The poll system uses persistent buttons and restores active polls after a restart.
Information: /help, /usage, /uptime, /ping, /membercount, /avatar, /serverinfo, /userinfo, /invite, /credits, /botinfo
Fun: /dog, /cat, /dice, /eightball, /meme, /fact, /topic, /showerthought, /poll, /feedback
Leveling: /rank, /leaderboard
Moderation: /warn, /warnings, /clear-warnings, /modlogs, /mute, /purge, /slowmode, /addrole, /removerole, /kick, /ban, /unban
Server: /dashboard, /settings, /set-welcome-channel, /set-leave-channel, /set-log-channel, /set-auto-role, /toggle-welcome, /toggle-swear, /toggle-links, /toggle-xp
Context menus: User Info, Warn User