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

31 Commits

Author SHA1 Message Date
Martin
93271117ec
Deps bump (#167)
Bump version to 1.5.0
Bump minimum node to latest supported LTS (12->18)
Bump all possible deps, notably Telegraf to 4.13

string-replace-async and nedb-promise still need to be dealt with later
2023-09-18 14:43:59 +02:00
Muthu Kumar
117c0c7f59
fix: rm unique index on username
Users can delete their account or rename their username and it's is released for anyone to pick up

Signed-off-by: Muthu Kumar <muthukumar@thefeathers.in>
2022-02-16 01:04:01 +05:30
pouria
d48772ef32 feat: add verifyCaptcha 2021-04-23 19:40:59 +04:30
Wojciech Pawlik
8fcfea6bb9
Add /permit, closes #72 2020-06-29 15:07:12 +02:00
Wojciech Pawlik
b5f2db725f
utils/parse.js -> utils/cmd/parse.ts 2020-06-05 22:30:07 +02:00
Wojciech Pawlik
9f7d17a471
Display when /user was added to database 2020-05-25 23:25:42 +02:00
Wojciech Pawlik
5c741022c4
Misc 2020-02-19 14:32:25 +01:00
GingerPlusPlus
0ea1e0064e Keep warns in /unban 2019-06-20 11:58:19 +02:00
GingerPlusPlus
713bd02210 Add -amend flag to /warn 2019-05-31 17:02:00 +02:00
GingerPlusPlus
1a36b1a85d Refuse to ban and warn admins on datastore level 2019-05-31 14:09:22 +02:00
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