2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-24 10:58:19 +00:00

32 Commits

Author SHA1 Message Date
Muthu Kumar
d6d40ac9fb
fix: ban/warn delegate deleteMsg to ctx.{ban|warn} 2023-09-19 23:59:20 +05:30
Martin Rys
5fdfab82ac Add room name where warn/ban happened 2022-03-29 13:38:22 +02:00
poeti8
62ec65ddb6 Fix checking if is private chat when ban 2020-07-15 18:47:44 +04:30
Wojciech Pawlik
1a9e3cecd0
Allow some custom commands in /warn and /ban 2020-05-23 21:56:04 +02:00
Wojciech Pawlik
f15b22d1f0
Normalize html formatting 2020-05-13 15:11:43 +02:00
Wojciech Pawlik
b553079ce7
Add -amend flag to /ban 2020-04-29 17:25:59 +02:00
Thomas Rory Gummerson
758b924436
Type ctx 2020-03-13 22:00:30 +01:00
GingerPlusPlus
634f294ba2 Add batchBan aka multiBan; closes #24 2019-01-31 20:19:39 +01:00
GingerPlusPlus
f5367457b8
Replace messages/checkUsername with utils/parse (#97) 2019-01-28 21:46:29 +01:00
Muthu Kumar
eeb571226d [feature] Schedule deletion of warn and ban messages (#95) 2018-11-20 06:17:30 +00:00
GingerPlusPlus
1b7f750d53
Warn and ban actions (#54)
This feature allows any part of the bot to warn and ban,
without having to repeat what that means,
which reduces duplication and makes the UX more consistent.
2018-02-05 19:17:52 +01:00
azeezy
7765ae15d0 Fixed letting bot warn and ban itself. Closes #43 2017-12-15 03:48:27 +05:00
Pouria Ezzati
e9695208eb don't check for username if no user is found 2017-11-23 18:06:52 +03:30
Pouria Ezzati
a88984d6a1 fixed minor typos 2017-11-23 00:20:21 +03:30
Pouria Ezzati
b0dd4578ea ban and unban users with id before they join 2017-11-22 21:44:17 +03:30
Pouria Ezzati
f6dfa08d4b send a message when /ban and /warn is used in private chat 2017-11-02 00:19:21 +03:30
GingerPlusPlus
ff2e78c92b [eslint] function-paren-newline: error, multiline 2017-10-31 23:08:22 +01:00
GingerPlusPlus
337f6e2183 Added and used scheduleDeletion
...only where I was certain that whis was a good idea,
perhaps it could be useful in more places.
2017-10-31 22:36:18 +01:00
Pouria Ezzati
d487a6fc75 ban/warn command on admins doesn't delete the message now 2017-10-10 22:20:50 +03:30
Pouria Ezzati
36535d4a6b refactoring on line if statements returns 2017-10-06 16:40:49 +03:30
Pouria Ezzati
672fd562f3 refactoring, created messages folder and added context state 2017-10-06 16:34:23 +03:30
GingerPlusPlus
23ac796744 Don't ban / warn in PM, don't ban / warn itself 2017-10-04 20:36:34 +02:00
Pouria Ezzati
6c0aebf715 changed error handling to console.error 2017-09-27 23:12:12 +03:30
Pouria Ezzati
7f27a30297 merged warn db into user db & improved db methods 2017-09-27 12:34:26 +03:30
Pouria Ezzati
1219654065 merged ban & admin DBs into user DB 2017-09-27 00:11:20 +03:30
Pouria Ezzati
7c94ca45f0 renamed group store to match others 2017-09-25 16:17:18 +03:30
Pouria Ezzati
d6c76952de commands now work with mention 2017-09-25 12:40:04 +03:30
Pouria Ezzati
39145d35be commands now tell which admin did it 2017-09-24 23:24:34 +03:30
Pouria Ezzati
1036ad5f88 added styling format for messages 2017-09-24 14:28:31 +03:30
Pouria Ezzati
0b8af0cbb3 added next() on message middleware 2017-09-23 21:52:58 +03:30
Pouria Ezzati
d525b4a37b added try...catch on some async/awaits 2017-09-23 21:49:23 +03:30
Pouria Ezzati
34f34420bf refactored commands and middlewared into their folders 2017-09-23 21:40:58 +03:30