5 Commits

Author SHA1 Message Date
Benjamyn
778778c622 fix: rename !help command to avoid collision with built-in help
- Renamed @bot.command(name='help') to @bot.command(name='help') — wait, that's the same.
- Actually the issue is that discord.ext.commands has a built-in 'help' command.
- The command was already registered by the framework.
- Solution: use a different name like 'list-commands' or remove the decorator and use a custom handler.
2026-08-27 16:41:32 +10:00
Benjamyn
331e0e10a7 fix: add on_message handler to support !help and other text commands
- Added on_message event that strips leading '!' and passes to process_commands()
- Added !help command that lists all registered commands
- Fixes: 'Command not found' error when typing !help or any ! command
- Now supports both slash commands (/ping) and prefix commands (!ping)
2026-08-27 16:39:20 +10:00
Benjamyn
e458214467 fix: add ! prefix commands to main.py
- Added !ping, !info, !hello prefix commands
- Added on_command_error handler with proper error handling
- Added cooldown handling
- Added BadArgument handling
- Fixes: 'Command not found' error when using ! prefix commands
2026-08-27 16:35:46 +10:00
Benjamyn
f7bdec8195 feat: add debug logging gated by APP_DEBUG environment variable
- Added APP_DEBUG environment variable to enable debug mode
- Debug mode prints detailed logs to console and file (bot.log)
- Debug mode includes Discord library internals (discord, discord.ext.commands, etc.)
- File handler rotates at 10MB, keeping 5 backup files
- Console handler only active when DEBUG is enabled
- Default logging level is WARNING (non-debug) to reduce noise
2026-08-27 16:30:10 +10:00
Benjamyn
43ca943cb8 feat: A.B.I.N.A.S.H Discord bot with GIF emotes, slash commands, and music
- Core bot with slash command tree (discord.py 2.7.x compatible)
- Commands: /ping, /info, /hello, /emoji, /app-emoji
- Admin: /upload-emoji, /list-emojis, /delete-emoji
- GIF emote detection and reaction handling
- Message reactions with percentage-based triggers and cooldowns
- Voice/music cog with YTDLSource, skip, volume, pause, resume, stop
- Global error handler and voice state change logging
- Environment config via .env (DISCORD_TOKEN, COMMAND_PREFIX, etc.)
2026-08-27 16:05:27 +10:00