2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 04:37:52 +00:00

64 Commits

Author SHA1 Message Date
Thomas Rory Gummerson
e951497c71 hotfix: also patch util.isRegExp and util.isArray 2024-12-02 12:58:51 +01:00
Thomas Rory Gummerson
d1b686a991 hotfix: patch util.isDate for node 23 2024-12-02 12:50:11 +01:00
Martin Rys
bc5e3aa315 index.js: Simplify creating data folder 2022-03-26 14:26:10 +01:00
Martin Rys
d411c977a6 index.js: Make sure data folder gets automatically created 2022-03-26 13:57:00 +01:00
Muthu Kumar
eab18c3e85 Revert "Add telegraf-throttler"
This reverts commit d040bb1385e5b1eba9db5e8bce5cc35e41d7b8c3.
2020-07-26 08:38:28 +05:30
Wojciech Pawlik
d040bb1385
Add telegraf-throttler 2020-06-30 15:54:41 +02:00
Wojciech Pawlik
67f7120968
Fix floating promises 2020-05-13 22:59:23 +02:00
Wojciech Pawlik
0ab0b582ff
Transpile with ts-node 2020-04-29 18:01:53 +02:00
Wojciech Pawlik
7a7b8a4ab4
Remove legacy /addCommand 2020-04-24 15:24:24 +02:00
Wojciech Pawlik
5c741022c4
Misc 2020-02-19 14:32:25 +01:00
GingerPlusPlus
5bbdb529f1 Misc 2019-03-18 19:05:16 +01:00
GingerPlusPlus
a5aa974e53 [Bugfix] start polling only after fetching username 2018-09-01 15:46:42 +02:00
GingerPlusPlus
83a61353e5 New handlers: regex/groupLinker, unmatched 2018-01-30 14:48:07 +01:00
GingerPlusPlus
d98ba68cb7 Added support for plugins 2017-10-27 18:43:33 +02:00
GingerPlusPlus
f08de28edd [Refactor] split handlers into composers 2017-10-27 13:50:54 +02:00
GingerPlusPlus
0d52ff3e76 Syncing status
On join, apply admin and banned status
2017-10-21 18:13:34 +02:00
Pouria Ezzati
d3b4248b10 @admins works with words after 2017-10-08 11:40:42 +03:30
Pouria Ezzati
672fd562f3 refactoring, created messages folder and added context state 2017-10-06 16:34:23 +03:30
Faizan Akram
231526de4d Minor refactoring
+ Fixed eslint issues
2017-10-05 01:15:58 +05:30
Faizan Akram
b46edc8cb9 Added jsdoc to some files
+ some minor refactoring
2017-10-04 23:57:47 +05:30
Pouria Ezzati
88a08d0d88 added custom commands 2017-10-04 20:55:50 +03:30
Pouria Ezzati
5fe5bd4561 refactored middleware into their own handlers 2017-10-03 11:10:39 +03:30
Pouria Ezzati
1f693bf3d0 added /link command 2017-10-02 14:16:54 +03:30
Pouria Ezzati
0f42c9ee55 change delete message delay to 2 minutes 2017-10-02 14:16:54 +03:30
GingerPlusPlus
fdfbfa5727 Added /leave 2017-09-28 22:59:35 +02:00
Pouria Ezzati
4326065f42 added help and start command 2017-09-28 15:41:06 +03:30
GingerPlusPlus
5820919e3a Added /commands 2017-09-27 22:17:42 +02:00
Pouria Ezzati
647abc4744 removed dotenv package 2017-09-27 23:22:06 +03:30
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
d6c76952de commands now work with mention 2017-09-25 12:40:04 +03:30
GingerPlusPlus
ac6780f4f5 Added /groups 2017-09-24 23:23:36 +02:00
GingerPlusPlus
3e344ceca2 console.error unhandled errors 2017-09-24 18:34:32 +02:00
GingerPlusPlus
178545e7b7 Added /staff command 2017-09-24 18:05:16 +02:00
GingerPlusPlus
797b01733b [Bugfix] Corrected middleware order
Put  addedToGroupHandler before leaveUnmanagedHandler.

Without that, it's impossible for the master to add the bot to a group,
because it leaves immiedetly, before checking who added him.
2017-09-24 15:28:43 +02:00
GingerPlusPlus
53fdf39a4e Moved report handler to the right place, updated TODO 2017-09-23 21:33:20 +02:00
GingerPlusPlus
a7b7172ed9 Added /report command
Closes #6
2017-09-23 20:57:32 +02:00
Pouria Ezzati
0b8af0cbb3 added next() on message middleware 2017-09-23 21:52:58 +03:30
Pouria Ezzati
34f34420bf refactored commands and middlewared into their folders 2017-09-23 21:40:58 +03:30
GingerPlusPlus
d5e3e1f0b5 Made sure names of handlers end with "handler" 2017-09-22 19:47:38 +02:00
GingerPlusPlus
e0279e3a95 Renamed newChatMemberHandler into antibotHandler 2017-09-22 19:46:00 +02:00
GingerPlusPlus
9e3e9c4672 Rewritten antibot and removing join / leave msgs 2017-09-22 19:24:36 +02:00
GingerPlusPlus
ea97b2fb31 Bot manages group only if added there by master
It leaves with a message otherwise.
2017-09-22 17:14:25 +02:00
Pouria Ezzati
24234a686a User DB and new commands: ban, unban, unadmin 2017-09-22 15:52:27 +03:30
GingerPlusPlus
5759e08326 Bot knows its username
It's available as ctx.me
2017-09-21 23:47:51 +02:00
Pouria Ezzati
1e476d758f added nowarns command, more configs 2017-09-21 23:47:26 +04:30
Pouria Ezzati
6739a2f0a0 refactored to be more modular 2017-09-21 13:57:49 +04:30
Pouria Ezzati
fd399a45b6 removed init cli, revised Warn DB 2017-09-20 23:17:00 +04:30
Thomas Rory Gummerson
9122f0737a Antibot fixes 2017-07-24 19:26:42 +02:00
Thomas Rory Gummerson
b9b17b46f2 Antibot 2017-07-24 19:17:13 +02:00