2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-29 13:17:56 +00:00

418 Commits

Author SHA1 Message Date
GingerPlusPlus
2fafa93b10 Add isMaster util function 2018-05-04 19:51:49 +02:00
GingerPlusPlus
7b34308462 Remove messages/removeLinks, closes #51 2018-05-04 16:13:44 +02:00
GingerPlusPlus
3e6a242a6b New handler: middlewares/removeChannelForwards (#51) 2018-05-04 15:48:07 +02:00
GingerPlusPlus
b20e1b3a9b Add and use ctx.warn 2018-05-04 14:21:51 +02:00
GingerPlusPlus
932e6fd1a2 Warn for "t.me links" in monospace (#51) 2018-05-01 14:31:52 +02:00
GingerPlusPlus
bc4411b073 Don't warn for multiple copies of the same link 2018-05-01 13:01:44 +02:00
GingerPlusPlus
94b8057c36 0.8.0 v0.8.0 2018-04-26 20:44:39 +02:00
GingerPlusPlus
6f1915e0b1 Reduce duplication in addCustomCmd, closes #69 2018-04-26 19:07:39 +02:00
Muthu Kumar
6858bb9168
Fixed bot name 2018-04-22 11:38:02 +05:30
GingerPlusPlus
6cfdfbed45 Improve and disable notifyBrokenLink 2018-04-21 17:50:57 +02:00
GingerPlusPlus
32694b18bf Add ban_details to User schema, closes #47
Note that legacy ban_reason is still set on every ban,
as ban_details aren't yet respected in /user.
2018-04-20 21:45:06 +02:00
GingerPlusPlus
53b37e9dfa Change warn schema to array of objects (#47) 2018-04-18 21:47:35 +02:00
GingerPlusPlus
47d33ad025 Extend groupLinker's regex (3) 2018-04-18 21:17:59 +02:00
GingerPlusPlus
631c61ccbc Allow /commands to be used in groups, scheduleDeletion 2018-04-17 17:35:20 +02:00
GingerPlusPlus
ef9bad90eb [Bugfix] fix /commands' markup 2018-04-17 17:19:27 +02:00
GingerPlusPlus
8253b70421 Extend groupLinker's regex (2) 2018-04-16 16:26:44 +02:00
GingerPlusPlus
aaa4f52df8 Extend groupLinker's regex 2018-04-15 17:26:39 +02:00
GingerPlusPlus
47639b42a2 [Bugfix] match only full group name in groupLinker 2018-04-15 17:26:14 +02:00
GingerPlusPlus
50f5961e89 Lint staged JS files in pre-commit 2018-04-15 14:31:14 +02:00
GingerPlusPlus
908b9b46ee
New handler: middlewares/checkLinks (#66) 2018-04-15 13:21:28 +02:00
GingerPlusPlus
b74b352e6d [Bugfix] closes #67 2018-04-05 17:58:48 +02:00
GingerPlusPlus
538c2da501 New commands: /showgroup, /hidegroup
Closes #64.
Closes #31.
2018-04-03 00:21:00 +02:00
GingerPlusPlus
a42e9c9b8e New handler: middlewares/updateGroupTitle 2018-04-02 20:09:12 +02:00
Pouria Ezzati
a861b20534
Merge pull request #65 from DonMcCoy/develop
Fix a Typo
2018-04-02 11:28:16 +04:30
Omar Khalil
b96f4c82b0 Fix a Typo 2018-04-02 01:42:21 +02:00
Thomas Rory Gummerson
a0493751b7 Localize logo file 2018-03-23 15:28:40 +01:00
GingerPlusPlus
ea909dcebb Revert "Don't lint plugins"
This reverts commit fbbae8cb0c8d95041b05bba6b673dbd75e443c7c.
2018-03-14 16:46:14 +01:00
Pouria Ezzati
7180d922ee Case-insensitive catching spam links 2018-02-22 10:58:42 +03:30
GingerPlusPlus
8f01e57d55 0.7.0 v0.7.0 2018-02-18 14:38:28 +01:00
GingerPlusPlus
57ff83b779 /link doesn't try to reply to PMs 2018-02-17 22:19:00 +01:00
GingerPlusPlus
eb83119492 /unadmin attempts to revoke admin permissions in all groups 2018-02-17 22:03:46 +01:00
GingerPlusPlus
feba5c1f43 Update dependencies; closes #55. 2018-02-10 20:20:17 +01:00
GingerPlusPlus
dabd7dc471 Unique, sparse index on username field
Db schema change:
don't default username to empty string.
2018-02-06 15:03:37 +01:00
GingerPlusPlus
1b7f750d53
Warn and ban actions (#54)
This feature allows any part of the bot to warn and ban,
without having to repeat what that means,
which reduces duplication and makes the UX more consistent.
2018-02-05 19:17:52 +01:00
GingerPlusPlus
9de38b7306 Move runCustomCmd to handlers/regex 2018-02-02 20:37:23 +01:00
Pouria Ezzati
4e0bbef740 fixed bug warning all usernames 2018-02-02 18:30:03 +03:30
GingerPlusPlus
ea69ca9256 Improved custom commands, /replaceCommand
Closes #53
2018-02-02 15:47:09 +01:00
Pouria Ezzati
695a255496 a bit refactoring for removeLinks 2018-02-02 01:26:55 +03:30
Pouria Ezzati
789c42ddcd make warning forward links case insensitive. 2018-02-02 00:29:16 +03:30
GingerPlusPlus
150a1246bc Added .editorconfig 2018-02-01 17:07:37 +01:00
GingerPlusPlus
d60ff556b4 [Bugfix] kickBanned doesn't prevent checking new members 2018-02-01 16:01:21 +01:00
GingerPlusPlus
83a61353e5 New handlers: regex/groupLinker, unmatched 2018-01-30 14:48:07 +01:00
Pouria Ezzati
38e1559804 warn bot start links, channel posts. Closes #41, #46, #49 2018-01-30 01:31:29 +03:30
GingerPlusPlus
11f6c4b0de 0.6.1 v0.6.1 2018-01-28 17:18:37 +01:00
GingerPlusPlus
69f8431eea When kicked from a group, stop managing it 2018-01-28 17:17:47 +01:00
GingerPlusPlus
7143e588a6 Rewritten middlewares/kickBanned
Closes #52
2018-01-28 17:05:52 +01:00
GingerPlusPlus
ed4473fbab Do nothing in syncStatus if newcomer is not in db 2018-01-28 15:21:15 +01:00
GingerPlusPlus
617bdbfc54 Rewritten middleware/updateUserData
Formerly known as messages/addUser
2018-01-27 23:13:42 +01:00
GingerPlusPlus
e84348e363 Misc 2018-01-27 21:35:20 +01:00
GingerPlusPlus
47ac482f78 messages/addUser -> middleware/updateUserData 2018-01-27 21:21:11 +01:00