2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-30 21:55:17 +00:00
Commit Graph

454 Commits

Author SHA1 Message Date
Wojciech Pawlik
a11e35d3a7 Add middlewares/antiflood 2020-06-06 10:51:46 +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
137f49e9e6 Centralize tmeDomains 2020-06-05 22:17:16 +02:00
Wojciech Pawlik
25215151a2 Refactor checkLinks to TS 2020-06-05 22:01:20 +02:00
Wojciech Pawlik
39036826d4 checkLinks.js -> checkLinks.ts 2020-06-05 15:58:31 +02:00
Thomas Rory Gummerson
b271c53fd8 Invite link checking based on chat ID rather than known invite links 2020-06-05 15:58:25 +02:00
Wojciech Pawlik
959bef339d Use caption in substom 2020-05-26 13:29:57 +02:00
Wojciech Pawlik
624c74060a Support group migration, fixes #122 2020-05-26 13:23:54 +02:00
Wojciech Pawlik
9f7d17a471 Display when /user was added to database 2020-05-25 23:25:42 +02:00
Wojciech Pawlik
93538a6d93 Don't try unbanning outside supergroups (#122) 2020-05-25 22:49:53 +02:00
Thomas Rory Gummerson
55bf2f330e Allow custom commands for everyone 2020-05-25 21:33:07 +02:00
Wojciech Pawlik
417f956278 Improve report handling 2020-05-25 13:19:12 +02:00
Wojciech Pawlik
1a9e3cecd0 Allow some custom commands in /warn and /ban 2020-05-23 21:56:04 +02:00
Wojciech Pawlik
9db362f6ad 1.3.0 v1.3.0 2020-05-18 20:44:07 +02:00
Wojciech Pawlik
25440ecf04 Misc 2020-05-18 20:43:28 +02:00
Wojciech Pawlik
765a8dd5a5 Add adminLog chat, fixes #96 2020-05-14 23:18:25 +02:00
Wojciech Pawlik
67f7120968 Fix floating promises 2020-05-13 22:59:23 +02:00
Wojciech Pawlik
20e142fa85 Remove replyOptions 2020-05-13 22:38:59 +02:00
Wojciech Pawlik
5b5cf335a1 Avoid manual escapeHtml 2020-05-13 22:35:50 +02:00
Wojciech Pawlik
b8f4de0c25 Avoid logError 2020-05-13 22:05:22 +02:00
Wojciech Pawlik
c93f27bcf6 Avoid forEach 2020-05-13 22:00:49 +02:00
Wojciech Pawlik
88f4c65100 Fix html formatting in /staff 2020-05-13 21:35:17 +02:00
Wojciech Pawlik
fffdc1c827 Edit instead of re-sending in commandButtons 2020-05-13 21:23:13 +02:00
Wojciech Pawlik
14db56be56 Make use of docker layer caching (#119)
* Make use of docker layer caching

This will decrease the build times by a massive amount due to layer caching in the docker build process.

* Removed installation of git

@wojpawlik mentioned it would not be needed anymore.
2020-05-13 18:20:38 +02:00
Wojciech Pawlik
39a1f22e3e Fix /del 2020-05-13 18:15:42 +02:00
Wojciech Pawlik
e814ec185d Rewrite /report 2020-05-13 17:22:30 +02:00
Wojciech Pawlik
f15b22d1f0 Normalize html formatting 2020-05-13 15:11:43 +02:00
Christian Romeni
6b5ed4ac47 Removed installation of git
@wojpawlik mentioned it would not be needed anymore.
2020-05-12 22:47:51 +02:00
Christian Romeni
62d4023dfe Make use of docker layer caching
This will decrease the build times by a massive amount due to layer caching in the docker build process.
2020-05-12 18:25:54 +02:00
Wojciech Pawlik
6949c6535b Vendor tg-html 2020-05-12 18:03:07 +02:00
Wojciech Pawlik
7b81666003 Globally disable_web_page_preview by default 2020-05-11 13:31:36 +02:00
Wojciech Pawlik
9ad99e6c82 Handle expiry in /unwarn 2020-05-08 21:31:02 +02:00
Wojciech Pawlik
8925648216 Streamline /user 2020-05-08 21:30:49 +02:00
Wojciech Pawlik
c8673d963b TSify 2020-05-08 15:52:59 +02:00
Wojciech Pawlik
3205d04e74 Add user ID to ban/warn message, fixes #105 2020-05-08 14:08:11 +02:00
Wojciech Pawlik
56b25f9dd8 Streamline CI 2020-05-05 16:04:31 +02:00
Wojciech Pawlik
02fb858e4d Strenghten tsconfig 2020-05-04 23:56:22 +02:00
Wojciech Pawlik
cf56ef66c5 Streamline .eslintrc 2020-05-04 23:56:22 +02:00
Wojciech Pawlik
0ab0b582ff Transpile with ts-node 2020-04-29 18:01:53 +02:00
Wojciech Pawlik
b553079ce7 Add -amend flag to /ban 2020-04-29 17:25:59 +02:00
Wojciech Pawlik
779898d628 1.2.0 v1.2.0 2020-04-24 22:34:15 +02:00
Wojciech Pawlik
2cc5ed14d7 Update Telegraf 2020-04-24 20:58:48 +02:00
Wojciech Pawlik
7a7b8a4ab4 Remove legacy /addCommand 2020-04-24 15:24:24 +02:00
Wojciech Pawlik
1fc8938ed4 Misc 2020-04-04 14:01:03 +02:00
Wojciech Pawlik
1074615927 Add spamwatch 2020-04-03 21:59:25 +02:00
Wojciech Pawlik
b379aabc4f Revert "Try my eslint-fix git filter"
Filter failure somehow prevents git status and git log lmao

This reverts commit e107081650.
2020-04-03 16:37:00 +02:00
Wojciech Pawlik
41f71268dc Remove (slow) precommit 2020-04-03 16:11:18 +02:00
Wojciech Pawlik
0fabca1040 Update typings 2020-04-03 15:46:01 +02:00
trgwii
b340ea368e Fix broken link 2020-04-01 11:01:15 +02:00