2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-22 01:49:29 +00:00

61 Commits

Author SHA1 Message Date
wiz0u
3ac421e049
msgLink use group username if available (#161)
Tested in prod
2023-04-14 02:42:45 +02:00
Thomas Rory Gummerson
21a67644e6 Show warn expiry in warn message if expireWarnsAfter is set to a finite value 2023-03-08 09:57:39 +01:00
Martin Rys
8889a91e54 Bump xregexp to 5.1.0 2022-03-26 15:08:52 +01:00
Martin Rys
96e6a3c761 Upgrade to Telegraf 4.3 2021-05-07 22:46:11 +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
433854e154
Refactor utils/cmd/parse to TS 2020-06-06 09:20:15 +02:00
Wojciech Pawlik
b5f2db725f
utils/parse.js -> utils/cmd/parse.ts 2020-06-05 22:30:07 +02:00
Wojciech Pawlik
959bef339d
Use caption in substom 2020-05-26 13:29:57 +02:00
Wojciech Pawlik
9f7d17a471
Display when /user was added to database 2020-05-25 23:25:42 +02:00
Thomas Rory Gummerson
55bf2f330e Allow custom commands for everyone 2020-05-25 21:33:07 +02:00
Wojciech Pawlik
1a9e3cecd0
Allow some custom commands in /warn and /ban 2020-05-23 21:56:04 +02:00
Wojciech Pawlik
25440ecf04
Misc 2020-05-18 20:43:28 +02:00
Wojciech Pawlik
5b5cf335a1
Avoid manual escapeHtml 2020-05-13 22:35:50 +02:00
Wojciech Pawlik
c93f27bcf6
Avoid forEach 2020-05-13 22:00:49 +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
8925648216
Streamline /user 2020-05-08 21:30:49 +02:00
Wojciech Pawlik
3205d04e74
Add user ID to ban/warn message, fixes #105 2020-05-08 14:08:11 +02:00
Wojciech Pawlik
1074615927
Add spamwatch 2020-04-03 21:59:25 +02:00
Wojciech Pawlik
6ca88f4133
Allow to separate users and reason using -- 2020-03-21 20:07:07 +01:00
Wojciech Pawlik
e60d2e31fb
Fix some TypeScript errors 2020-03-13 22:02:41 +01:00
Thomas Rory Gummerson
f018464482
Type config file 2020-03-12 19:42:53 +01:00
Wojciech Pawlik
2b113ffe89
Streamline groupLinker
Closes #68.
RegExp is terrible for natural language.
2020-02-19 14:29:05 +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
Dani
5782abb704 Create middlewares/logPresence (#104) 2019-07-06 16:10:41 +02:00
Thomas Rory Gummerson
2c1bcb9f96 Update ESLint to get rid of js-yaml exploit 2019-07-02 13:28:01 +02:00
GingerPlusPlus
713bd02210 Add -amend flag to /warn 2019-05-31 17:02:00 +02:00
GingerPlusPlus
16f303622b Allow to remove any warn by specifying its date 2019-05-31 13:36:37 +02:00
GingerPlusPlus
b83e8bf42f Improve and consistently use escapeHtml 2019-04-06 20:58:56 +02:00
GingerPlusPlus
5b9cea8103 Handle and utilize message links 2019-04-06 15:39:40 +02:00
GingerPlusPlus
1fbec32df3 Extract target user from bot's messages 2019-01-31 21:54:43 +01:00
GingerPlusPlus
f5367457b8
Replace messages/checkUsername with utils/parse (#97) 2019-01-28 21:46:29 +01:00
GingerPlusPlus
6c36e30102 Support multiple masters; closes #81 2019-01-28 15:20:00 +01:00
GingerPlusPlus
8115e3959e Fix masterById 2019-01-28 12:25:17 +01:00
GingerPlusPlus
c5bae13d3f Make some handlers channel-friendly 2019-01-24 19:53:10 +01:00
Muthu Kumar
eeb571226d [feature] Schedule deletion of warn and ban messages (#95) 2018-11-20 06:17:30 +00:00
GingerPlusPlus
642f2e99c3 Use router instead of composer in commands/index
+ Makes commands case-insensitive
+ Avoids hardcoding commands in commands/addCommand
2018-05-20 12:07:12 +02:00
GingerPlusPlus
2fafa93b10 Add isMaster util function 2018-05-04 19:51:49 +02:00
GingerPlusPlus
6c7b2dcf06 Made time before deleting join and leave messages configurable 2017-11-24 15:20:08 +01:00
GingerPlusPlus
2870b7fa56 [Bugfix] don't return Promise from scheduleDeletion
Because when Promise is returned from Telegraf handler,
bot doesn't fetch updates until it settles.

And we do `return reply(...).then(scheduleDeletion)`...
2017-11-02 12:04:42 +01:00
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
GingerPlusPlus
61d5cd9950 [eslint] no-console: error 2017-10-29 20:27:59 +01:00
GingerPlusPlus
b0075f2065 Used new quietLink instead of link in /staff
1. It doesn't mention admins
2. It's more reliable (inline mentiones sometimes don't work)
2017-10-22 17:33:21 +02:00
GingerPlusPlus
0f0dee3a7d Removed utils/json, replaced loadJSON with require 2017-10-06 18:35:53 +02:00
GingerPlusPlus
5ad0a72325 Added @returns to silence eslint 2017-10-06 18:15:34 +02:00
Faizan Akram
b46edc8cb9 Added jsdoc to some files
+ some minor refactoring
2017-10-04 23:57:47 +05:30
Pouria Ezzati
6c0aebf715 changed error handling to console.error 2017-09-27 23:12:12 +03:30