Commit graph

6 commits

Author SHA1 Message Date
devilreef
d00295b291 feat: global banlist for role creation
GLOBAL_ADMINS env controls who can /gban, /gunban, /gbanlist.
Banned users blocked from /roleadd across all chats.
2026-02-17 21:38:38 +06:00
devilreef
85c7410ffb refactor: simplify codebase with unified patterns and reduced duplication
- unify ChatConfigService setters into generic setPermission method
- replace PermissionService switch statements with data-driven checkers map
- deduplicate config.ts callback handlers via loop-based registration (414→254 lines)
- extract shared updateChatCommands utility from role-add/role-delete
- add proper generics to chunk utility, fix mention loop indexing
- extract isHiddenAdmin helper and ANONYMOUS_ADMIN_ID constant in perms
- remove debug console.logs, standardize arrow exports and type imports
- add roleAdminPermission schema and migration
2026-02-17 21:27:35 +06:00
devilreef
1eb2200fbe feat: config management
fuck it we're vibecoding now
2025-11-28 13:41:13 +06:00
devilreef
1ea3f3ba97 fix: use membersChunks instead of chunkIdx 2025-11-22 12:43:12 +06:00
devilreef
1f1985c1ac feat: improve mention handling in bot and mention services 2025-11-22 12:38:48 +06:00
devilreef
e54dee08c8 feat: initial commit 2025-11-21 19:04:14 +06:00