2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-23 10:28:09 +00:00

30 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
Martin Rys
96e6a3c761 Upgrade to Telegraf 4.3 2021-05-07 22:46:11 +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
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
6949c6535b
Vendor tg-html 2020-05-12 18:03:07 +02:00
Wojciech Pawlik
3205d04e74
Add user ID to ban/warn message, fixes #105 2020-05-08 14:08:11 +02:00
Wojciech Pawlik
e60d2e31fb
Fix some TypeScript errors 2020-03-13 22:02:41 +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
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
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
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
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
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
Faizan Akram
b46edc8cb9 Added jsdoc to some files
+ some minor refactoring
2017-10-04 23:57:47 +05:30
GingerPlusPlus
0b5aa1b02f Export escapeHtml 2017-09-24 23:23:13 +02:00
GingerPlusPlus
6593c52acf Always use first_name in link, and escape it
I'm disappointed that you added that to TODO
instead of resolving it immiedetly, @poeti8.

Also added escapeHtml, so the bot doesn't break
when someone has something html-like in first_name.
2017-09-24 14:55:26 +02:00
Pouria Ezzati
1b9365f5cf link based on ID, minor warn refactoring 2017-09-21 16:14:54 +04:30
Thomas Rory Gummerson
caa8f1340b MANY FEATURES 2017-07-24 18:08:31 +02:00
Thomas Rory Gummerson
086a13948f Fixes 2017-07-24 17:12:38 +02:00
Thomas Rory Gummerson
bcee0c4aa7 More 2017-07-24 14:18:53 +02:00