2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 04:37:52 +00:00

15 Commits

Author SHA1 Message Date
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
Pouria Ezzati
d487a6fc75 ban/warn command on admins doesn't delete the message now 2017-10-10 22:20:50 +03:30
GingerPlusPlus
0f0dee3a7d Removed utils/json, replaced loadJSON with require 2017-10-06 18:35:53 +02:00
Pouria Ezzati
36535d4a6b refactoring on line if statements returns 2017-10-06 16:40:49 +03:30
Pouria Ezzati
672fd562f3 refactoring, created messages folder and added context state 2017-10-06 16:34:23 +03:30
GingerPlusPlus
23ac796744 Don't ban / warn in PM, don't ban / warn itself 2017-10-04 20:36:34 +02:00
Pouria Ezzati
6c0aebf715 changed error handling to console.error 2017-09-27 23:12:12 +03:30
Pouria Ezzati
7f27a30297 merged warn db into user db & improved db methods 2017-09-27 12:34:26 +03:30
Pouria Ezzati
1219654065 merged ban & admin DBs into user DB 2017-09-27 00:11:20 +03:30
Pouria Ezzati
d6c76952de commands now work with mention 2017-09-25 12:40:04 +03:30
Pouria Ezzati
39145d35be commands now tell which admin did it 2017-09-24 23:24:34 +03:30
Pouria Ezzati
1036ad5f88 added styling format for messages 2017-09-24 14:28:31 +03:30
Pouria Ezzati
34f34420bf refactored commands and middlewared into their folders 2017-09-23 21:40:58 +03:30