2
0
mirror of https://github.com/thedevs-network/the-guard-bot synced 2025-08-28 12:47:56 +00:00

21 Commits

Author SHA1 Message Date
GingerPlusPlus
16f303622b Allow to remove any warn by specifying its date 2019-05-31 13:36:37 +02:00
GingerPlusPlus
6861119315 Improve /user 2019-05-02 21:42:13 +02:00
GingerPlusPlus
634f294ba2 Add batchBan aka multiBan; closes #24 2019-01-31 20:19:39 +01:00
GingerPlusPlus
f5367457b8
Replace messages/checkUsername with utils/parse (#97) 2019-01-28 21:46:29 +01:00
GingerPlusPlus
c5bae13d3f Make some handlers channel-friendly 2019-01-24 19:53:10 +01: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
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
617bdbfc54 Rewritten middleware/updateUserData
Formerly known as messages/addUser
2018-01-27 23:13:42 +01:00
Pouria Ezzati
15b92ad1b6 usernames mentions are now case insensitive 2017-11-20 16:03:47 +03:30
GingerPlusPlus
c8c95f65a8 Remove ban_reason in /unwarn
For consistency with unban.
2017-11-17 19:13:44 +01:00
GingerPlusPlus
e02f3ca9c3 /nowarns unbans 2017-11-17 18:53:51 +01:00
GingerPlusPlus
ff2e78c92b [eslint] function-paren-newline: error, multiline 2017-10-31 23:08:22 +01:00
GingerPlusPlus
9e728e33c7 /unwarn unbans 2017-10-28 20:24:13 +02:00
GingerPlusPlus
f0dbe0d92e Remove warnings on unban instead of on ban 2017-10-06 19:05:44 +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
a270210248 added error handling for db methods 2017-09-25 09:56:45 +03:30
Pouria Ezzati
24234a686a User DB and new commands: ban, unban, unadmin 2017-09-22 15:52:27 +03:30