Clear Warnings Command
- Added
!clearwarnscommand:- Admin-only.
- Resets a member’s warnings back to 0/3.
- Accepts optional reason (default:
Warnings cleared by <admin>). - Logs the action in the log channel.
- Updated
!gkbothelp to include the new command.
Admin Role Enforcement + Better Errors
- Restricted moderation commands (
!warn,!ban,!pardon,!banlist) to Admins only (Administrator permission required). - Regular members can still use:
!warnings(to check warnings).!gkbot(help command).
- Improved error handling:
- Clearer message when the bot cannot ban due to Discord role hierarchy:
⚠️ Could not ban this user — check the bot’s role is above theirs.
- Clearer message when the bot cannot ban due to Discord role hierarchy:
Warning System Update
- Added
!warncommand → Admins can warn members (3 warnings = auto-ban). - Added
!warningscommand → Members and admins can check warnings. - Warnings reset when a user is pardoned.
- Added
!bannedlistas alias for!banlist.
Command Update
- Replaced
!helpwith!gkbotfor showing command list.
Environment Variables Update (Railway-ready)
- Moved bot token and log channel ID to environment variables:
DISCORD_TOKENLOG_CHANNEL
- Safer for production (no hardcoded secrets).
Stability & Quality Update
- Synced lifetime ban list with existing server bans.
- Improved leave-ban reliability.
- Commands accept mention or raw ID.
!banlistresolves usernames/IDs, auto-splits if too long.- Default reasons include moderator name.
Command & Logging Update
- Added
!ban,!pardon,!banlist,!help. - Full reason logging with sensible defaults.
- Improved auto-ban on rejoin.
- Added join/leave logging.
- Better error output for missing permissions.
- Auto-ban users who leave (lifetime ban).
- Auto-ban if banned users rejoin.
- Basic join/leave logging.
- Keep-alive Express server.