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
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
Pouria Ezzati
b6e57b4e29
Update README.md 2017-11-02 09:58:25 +03:30
Pouria Ezzati
70317189bd fixed warn capacity number 2017-11-02 08:58:21 +03:30
Pouria Ezzati
f6dfa08d4b send a message when /ban and /warn is used in private chat 2017-11-02 00:19:21 +03:30
Pouria Ezzati
8029e27fac catching error with logError 2017-11-02 00:19:21 +03:30
Pouria Ezzati
e2e31f04d9 added /user command and removed /getwarns 2017-11-02 00:19:21 +03:30
GingerPlusPlus
eb76e2a651 Added configurable inline keyboard in warn messages 2017-11-01 21:34:38 +01:00
GingerPlusPlus
fc152708ac Ignore past messages when in development 2017-11-01 21:03:48 +01:00
Pouria Ezzati
f9fac176bd fixed warning links bug, minor refactoring 2017-11-01 23:32:47 +03:30
Pouria Ezzati
88aebcdc17 now warns both channels/groups links and usernames 2017-11-01 22:32:52 +03:30
Pouria Ezzati
8e4f01ce58 fixed no warning for channel links 2017-11-01 22:27:11 +03:30
GingerPlusPlus
564545e818 Don't remove the command in /warn
It's already handled by deleteMessage middleware in commands/index.js.
Handling it again causes an unhandled rejection.
2017-11-01 15:24:57 +01:00
GingerPlusPlus
fbbae8cb0c Don't lint plugins 2017-11-01 14:06:27 +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
84e178f363 Always send warn message on /warn
even when the last warning gets the target banned.
Closes #38

Also, use numberOfWarnsToBan instead of 3.
2017-10-31 19:08:17 +01:00
GingerPlusPlus
61d5cd9950 [eslint] no-console: error 2017-10-29 20:27:59 +01:00
GingerPlusPlus
04b5fac255 Made deleting commands more flexible and configurable 2017-10-29 17:46:52 +01:00
GingerPlusPlus
57f22e25d5 [Refactor] middlewares/removeCommands 2017-10-29 17:37:27 +01:00
GingerPlusPlus
9e728e33c7 /unwarn unbans 2017-10-28 20:24:13 +02:00
GingerPlusPlus
f3666f25f8 Documented plugins 2017-10-28 20:11:55 +02:00
GingerPlusPlus
d98ba68cb7 Added support for plugins 2017-10-27 18:43:33 +02:00
GingerPlusPlus
f08de28edd [Refactor] split handlers into composers 2017-10-27 13:50:54 +02:00
GingerPlusPlus
2e1c1ff124 Added missing comma in package.json 2017-10-27 12:47:45 +02:00
Muthu Kumar
fa4e9d8b25 Update package.json 2017-10-27 11:39:12 +05:30
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
0d52ff3e76 Syncing status
On join, apply admin and banned status
2017-10-21 18:13:34 +02:00
Pouria Ezzati
40ea78e23f Update package-lock.json v0.4.1 2017-10-15 20:30:38 +03:30
Pouria Ezzati
51147e0014 0.4.1 2017-10-15 20:30:05 +03:30
Pouria Ezzati
886f59280d Merge pull request #36 from TheDevs-Network/develop
add forwarded messages to DB
2017-10-15 20:28:52 +03:30
Pouria Ezzati
0bd4e2244b add fowarded message's user to database 2017-10-15 15:34:58 +03:30
Pouria Ezzati
8fe91927c0 removing keyboard after sending custom command role 2017-10-15 00:01:36 +03:30
Pouria Ezzati
eeab5f3683 Merge branch 'master' of github.com:TheDevs-Network/the-guard-bot into develop 2017-10-13 13:31:33 +03:30
Pouria Ezzati
5ac6e9c9ae fixed undefined bug 2017-10-13 13:18:00 +03:30
Pouria Ezzati
1c43ededea Merge pull request #35 from TheDevs-Network/develop
Disable channel warning, adding master username
2017-10-12 13:35:25 +03:30
Pouria Ezzati
b2d965e8e3 Merge pull request #34 from davidbgeek/cmd-deletion-fix
Fix deletion of code-formatted commands
2017-10-12 13:33:11 +03:30
David Roizenman
c5129de463 Fix deletion of code-formatted commands
Fixes deletion of commands formatted as code
2017-10-11 21:38:58 -04:00
Pouria Ezzati
a160e992fa sort and show all custom command roles in lowercase 2017-10-11 22:51:44 +03:30
Pouria Ezzati
846375f96c [bug fix] check if user exists 2017-10-11 21:45:33 +03:30
Pouria Ezzati
b8cba2595f check if username exists before using methods 2017-10-11 21:34:05 +03:30
Pouria Ezzati
752d839624 master id name fix in example 2017-10-11 00:26:53 +03:30
Pouria Ezzati
38b48a48b1 updated config comments 2017-10-11 00:25:30 +03:30
Pouria Ezzati
89a8b5875f fixed channel forwarding warn count bug 2017-10-11 00:16:34 +03:30
Pouria Ezzati
7904e1db6c removed console logs XD 2017-10-11 00:02:45 +03:30
Pouria Ezzati
c818df273a added the ability to disable warning channel/groups forward/link 2017-10-11 00:02:14 +03:30
Pouria Ezzati
1c7c7a4774 Merge branch 'develop' of github.com:TheDevs-Network/the-guard-bot into develop 2017-10-10 22:21:19 +03:30
Pouria Ezzati
d487a6fc75 ban/warn command on admins doesn't delete the message now 2017-10-10 22:20:50 +03:30
Pouria Ezzati
9ed3a54319 masterID can be a username now 2017-10-10 22:13:59 +03:30
Pouria Ezzati
183b901f26 custom commands role is not case sensitive anymore 2017-10-10 21:54:59 +03:30
Pouria Ezzati
699df6e1c5 small fix for removecommand message 2017-10-10 21:42:39 +03:30