2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-23 02:17:47 +00:00

17 Commits

Author SHA1 Message Date
Muthu Kumar
614043d711
fix: make context.ts work 2023-09-19 23:45:32 +05:30
Martin Rys
8491b9793b Fix comment 2021-05-12 16:31:32 +02:00
Martin Rys
a89ca3899a Revert "Addcommand documentation"
This reverts commit d6611e4158dd710438794fc93b3879c362534bf3.
2021-05-12 16:30:53 +02:00
Martin Rys
d6611e4158 Addcommand documentation 2021-05-09 20:09:03 +02:00
Martin Rys
f102102845 Fix banning by reaching max warns 2021-05-08 22:28:42 +02:00
Wojciech Pawlik
abffcb6790
Enable handlerTimeout
Hopfully works around https://github.com/telegraf/telegraf/issues/735
#118
2020-09-06 14:14:24 +02:00
Wojciech Pawlik
1872c665e2
Avoid relying on timer in antiflood 2020-06-15 15:38:03 +02:00
Wojciech Pawlik
a11e35d3a7
Add middlewares/antiflood 2020-06-06 10:51:46 +02: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
GingerPlusPlus
498c76ae0d [Bugfix] handle cyclic dependency 2018-05-05 20:10:22 +02:00
GingerPlusPlus
b20e1b3a9b Add and use ctx.warn 2018-05-04 14:21:51 +02:00
GingerPlusPlus
feba5c1f43 Update dependencies; closes #55. 2018-02-10 20:20:17 +01:00
GingerPlusPlus
5a4002e7d4 Don't assume config file extension
Even if we want to enforce one extension,
doing it in requires scattered across the whole project
doesn't sound like a good idea (don't repeat yourself).

This commit also enables .js configs,
so I added that to .gitignore.
I'll document it when we settle on default config format.

Why was .json everywhere in the first place?
I thought it was neccessary in some older versions of Node
to be able to require a .json file.
2017-11-24 12:31:47 +01:00
GingerPlusPlus
fc152708ac Ignore past messages when in development 2017-11-01 21:03:48 +01:00
GingerPlusPlus
0f0dee3a7d Removed utils/json, replaced loadJSON with require 2017-10-06 18:35:53 +02:00
Pouria Ezzati
6739a2f0a0 refactored to be more modular 2017-09-21 13:57:49 +04:30