feat: implement /admin add|remove @username command #75

Merged
shoko merged 1 commits from fix/issue-51-v2 into main 2026-04-04 12:18:32 +02:00
Owner

Summary

Implements /admin add @username and /admin remove @username commands.

Changes

  • Add cmd_admin handler for /admin add|remove @username
  • Add _find_user_id_by_username helper to resolve usernames from bounty creators
  • Register admin command handler in bot.py
  • Add admin to bot command list

Error Handling

  • Non-admin trying to add/remove: Only admins can perform this action.
  • User not found: User @{username} not found.

Fixes #51

## Summary Implements `/admin add @username` and `/admin remove @username` commands. ## Changes - Add cmd_admin handler for /admin add|remove @username - Add _find_user_id_by_username helper to resolve usernames from bounty creators - Register admin command handler in bot.py - Add admin to bot command list ## Error Handling - Non-admin trying to add/remove: ⛔ Only admins can perform this action. - User not found: ⛔ User @{username} not found. Fixes #51
shoko added 1 commit 2026-04-04 10:20:52 +02:00
- Add cmd_admin handler for /admin add|remove @username
- Add _find_user_id_by_username helper to resolve usernames from bounty creators
- Register admin command handler in bot.py
- Add 'admin' to bot command list
- Addresses issue #51
shoko merged commit b091153f10 into main 2026-04-04 12:18:32 +02:00
Sign in to join this conversation.