Skip to content

Commit a3a68a0

Browse files
lorenzocorallototo04Copilot
authored
feat: implement Ban All (#51)
* feat: voting utility * fix: logger level now uses `process.env` to avoid error in tests * fix(fmtUser): reduce user type restrictness * fix: remove LOG_LEVEL env from `@/env` * tests: add a vote test * feat(MenuGen): add support to update Menu data from callback Useful for long-term menus, like BanAll voting * feat: ban all - voting management with menu * feat: add a banall test command (temporary) * feat: use backend addRole and getDirettivo * feat: update types from backend, add delrole command * build: bump @polinetwork/backend to 0.11.0 * fix: check if there is no president * feat: module coordinator (#52) * feat: module coordinator * chore: folder structure * fix: don't know how variables work * fix: websocket lifecycle * feat: BanAll message update on progress * feat: unicode progress bar!!!! * fix(group-mgmt): join+admin correct handling * feat: ban-all --------- Co-authored-by: Lorenzo Corallo <[email protected]> * fix: lint * feat: test command banall * fix: throttle arg caching * feat: real commands btw * chore: biome * fix: minor aesthetic in progress message * fix: spelling errors Co-authored-by: Copilot <[email protected]> * fix: spelling errors 2 Co-authored-by: Copilot <[email protected]> * fix: banall commands not imported * fix: better progress text layout * fix: tu ma Co-authored-by: Copilot <[email protected]> * fix: words typos * fix: better sorry than safe * fix: add try-catch for banall initialization * feat: implement BanAll start from user report * chore:biome * docs: banallqueue documentation * fix: the banall text * fix: use string repeat Co-authored-by: Copilot <[email protected]> * fix: docs: fix: docs: fix: docs: * fix: spellinggggggg Co-authored-by: Copilot <[email protected]> * docs: update TODO.md --------- Co-authored-by: Tommaso Morganti <[email protected]> Co-authored-by: Copilot <[email protected]>
1 parent dbf78a5 commit a3a68a0

38 files changed

+1498
-114
lines changed

TODO.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
- [x] delete group from backend when the bot leaves a group
1616
- [x] search
1717
- [ ] advanced moderation
18-
- [ ] ban_all
19-
- [ ] unban_all
20-
- [x] audit log
18+
- [x] ban_all
19+
- [x] unban_all
20+
- [ ] audit log (implemented, need to audit every mod action)
2121
- [x] /report to allow user to report (@admin is not implemented)
2222
- [x] track ban, mute and kick done via telegram UI (not by command)
2323
- [ ] send in-chat action log (deprived of chat ids and stuff)

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@
4141
"@t3-oss/env-core": "^0.13.4",
4242
"@trpc/client": "^11.5.1",
4343
"@types/ssdeep.js": "^0.0.2",
44+
"bullmq": "^5.59.0",
4445
"croner": "^9.0.0",
4546
"grammy": "^1.37.0",
4647
"nanoid": "^5.1.5",
@@ -54,14 +55,15 @@
5455
"superjson": "^2.2.2",
5556
"zod": "^4.1.11"
5657
},
57-
"packageManager": "pnpm@10.6.5+sha512.cdf928fca20832cd59ec53826492b7dc25dc524d4370b6b4adbf65803d32efaa6c1c88147c0ae4e8d579a6c9eec715757b50d4fa35eea179d868eada4ed043af",
58+
"packageManager": "pnpm@10.17.1+sha512.17c560fca4867ae9473a3899ad84a88334914f379be46d455cbf92e5cf4b39d34985d452d2583baf19967fa76cb5c17bc9e245529d0b98745721aa7200ecaf7a",
5859
"engines": {
5960
"npm": ">=10.9.2",
6061
"node": ">=22.14.0"
6162
},
6263
"pnpm": {
6364
"onlyBuiltDependencies": [
6465
"esbuild",
66+
"msgpackr-extract",
6567
"unrs-resolver"
6668
]
6769
}

0 commit comments

Comments
 (0)