Skip to content

Add initial implementation of Powerban model and callback mechanism - #101

Open
santuchoagus wants to merge 3 commits into
comcomUBA:masterfrom
santuchoagus:feature/powerban
Open

Add initial implementation of Powerban model and callback mechanism#101
santuchoagus wants to merge 3 commits into
comcomUBA:masterfrom
santuchoagus:feature/powerban

Conversation

@santuchoagus

Copy link
Copy Markdown
  • Added 'BannedUser' model as the centralized state for future blacklist
  • Added the entire logic for the admin's 'powerban' handler
  • Added callback 'Powerban' callback button type with two actions 'Confirm' and 'Deny' to avoid accidental blacklisting
  • Added descriptive message logging and edits to avoid flooding group chats

Remaining work:

  • Adding the actual ban executor
  • Adding 'Unpowerban' and find a better name for it if necessary
  • Implement the necessary architecture to update all subscribed groups simultaneously avoiding unnecessary overhead
  • Consider adding some other mechanism to avoid massive user bans

Refs #87

- Added 'BannedUser' model as the centralized state for future blacklist
- Added the entire logic for the admin's 'powerban' handler
- Added callback 'Powerban' callback button type with two actions 'Confirm' and 'Deny' to avoid accidental blacklisting
- Added descriptive message logging and edits to avoid flooding group chats

Remaining work:
- Adding the actual ban executor
- Adding 'Unpowerban' and find a better name for it if necessary
- Implement the necessary architecture to update all subscribed groups simultaneously avoiding unnecessary overhead
- Consider adding some other mechanism to avoid massive user bans

Refs comcomUBA#87
@santuchoagus
santuchoagus marked this pull request as ready for review August 1, 2026 06:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant