feat: add /admin command to list room admins #81

Closed
shoko wants to merge 1 commits from fix/issue-50 into main
Owner

Summary

Implement /admin command as specified in issue #50:

  • Lists all admin user IDs for the current room
  • Output format: Room Admins:\n- @user1\n- @user2
  • Shows No admins configured for this room. if none exist
  • Available to everyone (no permission check needed)

Changes

  • Add _find_username_by_user_id() helper function to look up usernames from user IDs
  • Update cmd_admin() to support listing when called with no args or with list subcommand
  • Update /help to include /admin command

Testing

/admin
Room Admins:
- @123456789
- @987654321

Closes #50

## Summary Implement /admin command as specified in issue #50: - Lists all admin user IDs for the current room - Output format: `Room Admins:\n- @user1\n- @user2` - Shows `No admins configured for this room.` if none exist - Available to everyone (no permission check needed) ## Changes - Add `_find_username_by_user_id()` helper function to look up usernames from user IDs - Update `cmd_admin()` to support listing when called with no args or with `list` subcommand - Update `/help` to include /admin command ## Testing ``` /admin Room Admins: - @123456789 - @987654321 ``` Closes #50
shoko added 1 commit 2026-04-04 15:08:05 +02:00
Implement /admin command as specified in issue #50:
- Lists all admin user IDs for the current room
- Output format: 'Room Admins:\n- @user1\n- @user2'
- Shows 'No admins configured for this room.' if none exist
- Available to everyone (no permission check needed)

Changes:
- Add _find_username_by_user_id helper function
- Update cmd_admin to support listing when called with no args
- Update /help to include /admin command

Closes #50
shoko closed this pull request 2026-04-04 15:29:04 +02:00

Pull request closed

Sign in to join this conversation.