2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 12:47:56 +00:00

170 Commits

Author SHA1 Message Date
wiz0u
81831ff255
Create delwarn.js - alias for warn 2024-09-18 23:35:25 +02:00
wiz0u
58bd894484
Create delban.js - alias for ban 2024-09-18 23:31:43 +02:00
Martin Rys
ac6ef1775c Fix /report description 2023-10-23 12:58:10 +02:00
Martin
972090d00c
Add optional /report reason and show it to admins (#171) 2023-10-23 11:55:49 +02:00
Muthu Kumar
5bedd0dce5
feat: forward reported msg to report chat 2023-09-20 00:36:58 +05:30
Muthu Kumar
d6d40ac9fb
fix: ban/warn delegate deleteMsg to ctx.{ban|warn} 2023-09-19 23:59:20 +05:30
Martin
f91f6ef4f5
Change deprecated .tg Telegraf alias for .telegram (#152)
* Swap deprecated .tg for .telegram
2022-05-31 17:17:45 +02:00
Martin Rys
5fdfab82ac Add room name where warn/ban happened 2022-03-29 13:38:22 +02:00
Martin Rys
5456585380 Fix variable case typo in permits 2022-03-29 13:38:04 +02:00
Martin Rys
f522ecd923 Format timestamps to have UTC in them, as they are UTC. 2021-05-12 16:30:11 +02:00
Martin Rys
9ab18ada0c fix addcommand in a dupe case 2021-05-10 09:14:03 +02:00
Martin Rys
19508ba346 Migrate /help to Telegraf 4 syntax 2021-05-09 21:03:24 +02:00
Martin Rys
96e6a3c761 Upgrade to Telegraf 4.3 2021-05-07 22:46:11 +02:00
Martin Rys
5bd57355b3 satisfy linter 2021-02-05 18:17:58 +01:00
Martin Rys
0d10c7cbb7 also delete messages from mangled reports 2021-02-05 12:43:56 +01:00
Martin Rys
04a0995e02 ignore monospaced reports 2021-02-05 12:06:44 +01:00
Martin Rys
182a469660 Always delete all report messages
Co-authored-by: Thomas Rory Gummerson <thomas@gummerson.no>
2020-10-09 10:56:24 +02:00
Martin Rys
33ed853712 Anonymize reporter 2020-09-18 12:54:33 +02:00
Martin Rys
e586cc8177 Show ID of reported user in reports 2020-09-18 12:49:16 +02:00
poeti8
62ec65ddb6 Fix checking if is private chat when ban 2020-07-15 18:47:44 +04:30
Wojciech Pawlik
8fcfea6bb9
Add /permit, closes #72 2020-06-29 15:07:12 +02:00
Wojciech Pawlik
e54719ad11
Misc 2020-06-29 15:05:04 +02:00
Wojciech Pawlik
db5e0f22f7
Add lrm 2020-06-15 14:45:55 +02:00
Wojciech Pawlik
9f7d17a471
Display when /user was added to database 2020-05-25 23:25:42 +02:00
Wojciech Pawlik
93538a6d93
Don't try unbanning outside supergroups (#122) 2020-05-25 22:49:53 +02:00
Wojciech Pawlik
1a9e3cecd0
Allow some custom commands in /warn and /ban 2020-05-23 21:56:04 +02:00
Wojciech Pawlik
765a8dd5a5
Add adminLog chat, fixes #96 2020-05-14 23:18:25 +02:00
Wojciech Pawlik
20e142fa85
Remove replyOptions 2020-05-13 22:38:59 +02:00
Wojciech Pawlik
5b5cf335a1
Avoid manual escapeHtml 2020-05-13 22:35:50 +02:00
Wojciech Pawlik
b8f4de0c25
Avoid logError 2020-05-13 22:05:22 +02:00
Wojciech Pawlik
c93f27bcf6
Avoid forEach 2020-05-13 22:00:49 +02:00
Wojciech Pawlik
88f4c65100
Fix html formatting in /staff 2020-05-13 21:35:17 +02:00
Wojciech Pawlik
39a1f22e3e
Fix /del 2020-05-13 18:15:42 +02:00
Wojciech Pawlik
e814ec185d
Rewrite /report 2020-05-13 17:22:30 +02:00
Wojciech Pawlik
f15b22d1f0
Normalize html formatting 2020-05-13 15:11:43 +02:00
Wojciech Pawlik
6949c6535b
Vendor tg-html 2020-05-12 18:03:07 +02:00
Wojciech Pawlik
7b81666003
Globally disable_web_page_preview by default 2020-05-11 13:31:36 +02:00
Wojciech Pawlik
9ad99e6c82
Handle expiry in /unwarn 2020-05-08 21:31:02 +02:00
Wojciech Pawlik
8925648216
Streamline /user 2020-05-08 21:30:49 +02:00
Wojciech Pawlik
c8673d963b
TSify 2020-05-08 15:52:59 +02:00
Wojciech Pawlik
3205d04e74
Add user ID to ban/warn message, fixes #105 2020-05-08 14:08:11 +02:00
Wojciech Pawlik
b553079ce7
Add -amend flag to /ban 2020-04-29 17:25:59 +02:00
Wojciech Pawlik
7a7b8a4ab4
Remove legacy /addCommand 2020-04-24 15:24:24 +02:00
Wojciech Pawlik
1fc8938ed4
Misc 2020-04-04 14:01:03 +02:00
Wojciech Pawlik
e60d2e31fb
Fix some TypeScript errors 2020-03-13 22:02:41 +01:00
Thomas Rory Gummerson
758b924436
Type ctx 2020-03-13 22:00:30 +01:00
Thomas Rory Gummerson
f018464482
Type config file 2020-03-12 19:42:53 +01:00
Wojciech Pawlik
5c741022c4
Misc 2020-02-19 14:32:25 +01:00
Wojciech Pawlik
697fd2be29
Allow to add custom command by replying to message 2020-02-19 08:11:32 +01:00
Wojciech Pawlik
096d8fe1ff
Improve /del 2020-02-12 17:25:29 +01:00