33 Commits

Author SHA1 Message Date
Ushie
2379130c5a
feat: use go-parse-duration for time parameters (#69)
* feat: use `go-parse-duration` for time parameters

* revert: accidental parameter type change

* refactor: move `parse_duration` to `mod.rs`

* refactor: use functional approach to handle error

* refactor: remove unused import

---------

Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-05-12 01:42:52 +03:00
Ushie
66c64e2950
feat(moderation): reorder purge parameters 2023-04-10 22:14:51 +03:00
oSumAtrIX
3e86a2cdb7
feat: add option to enable or disable pings when polling 2023-03-27 21:34:30 +02:00
oSumAtrIX
85b43f1c59
chore: update cargo dependencies 2023-03-27 01:51:13 +02:00
oSumAtrIX
14a1052cd8
feat: clone message to create a poll 2023-03-27 01:00:35 +02:00
Ax333l
9b7b2d49d5
style(clippy): use variables in the format string directly 2023-02-03 19:29:47 +01:00
Ax333l
05ff0a27d2
fix(moderation): properly convert UserId to Member (#50) 2023-01-07 00:03:46 +00:00
Ax333l
503e095bd0 fix(moderation): properly schedule unmutes 2023-01-04 17:02:34 +01:00
Ax333l
4c35fe5327 refactor(moderation): improve unmute scheduling 2023-01-03 13:58:45 +01:00
Ax333l
5fcad81483 fix(moderation): UserId instead of Member parameter
Context: https://github.com/revanced/revanced-discord-bot/issues/38
2023-01-03 13:58:45 +01:00
Ax333l
a8cedfc1c0
fix(moderation): use correct mute duration (#46)
sorry
2022-12-20 11:38:11 +01:00
Canny
573d907c1d
feat: permanently mute when no duration is specified (#44)
* feat: permanently mute when no duration is specified

Co-authored-by: Sculas <contact@sculas.xyz>

Co-authored-by: Ax333l <Axelen123@users.noreply.github.com>

* refactor: remove unneeded if statement

* fix: unset expires field when permanently muting

* fix: clippy

Co-authored-by: Ax333l <Axelen123@users.noreply.github.com>
Co-authored-by: Ax333l <main@axelen.xyz>
2022-12-19 18:02:20 +00:00
oSumAtrIX
3be6b4693c
feat(utils): poll command (#40)
Co-authored-by: Ax333l <main@axelen.xyz>
2022-12-15 20:37:21 +01:00
Ushie
78f954b7e8
feat(moderation): improve log embeds (#37)
Co-authored-by: Ax333l <main@axelen.xyz>
2022-12-03 03:58:38 +01:00
Ax333l
b2aa39b9b6
feat(moderation): disconnect from voice channel on mute (#39) 2022-12-01 18:15:05 +01:00
oSumAtrIX
2f67c59bb3
fix(moderation): save overwrites before modifying them 2022-10-07 13:01:30 +02:00
oSumAtrIX
abdc0922eb
feat: lock & unlock commands 2022-08-30 02:27:15 +02:00
oSumAtrIX
4ab4c7e00c
feat: media and logging channels and unban command 2022-08-28 07:34:59 +02:00
oSumAtrIX
b7d333c86c
feat: unban command 2022-08-28 02:08:00 +02:00
oSumAtrIX
042fc8c466
feat: handle mute when rejoining the server 2022-08-25 23:15:09 +02:00
oSumAtrIX
3ad345b009
perf: clone Arc of data.database 2022-08-25 03:36:23 +02:00
oSumAtrIX
e36df0e9f7
feat: reply command 2022-08-22 03:37:08 +02:00
oSumAtrIX
29be605c22
refactor: lint 2022-08-21 22:51:12 +02:00
oSumAtrIX
efaa6190e5
feat: ban command 2022-08-21 22:43:43 +02:00
oSumAtrIX
25efe87776
fix: incorrect command option description 2022-08-21 22:43:43 +02:00
oSumAtrIX
8045e180e9
feat: command descriptions 2022-08-21 22:43:42 +02:00
oSumAtrIX
3f1d6af569
refactor: remove unnecessary mutex 2022-08-21 22:43:42 +02:00
oSumAtrIX
204e7e6194
refactor: simplify Data 2022-08-21 03:33:24 +02:00
reis
55d0aaff21
feat: format timestamp (#17) 2022-08-20 17:20:24 +02:00
oSumAtrIX
c0bcc0a12b
fix: allow lints 2022-08-20 16:14:23 +02:00
oSumAtrIX
54171ba2ce
feat: moderation commands 2022-08-20 15:45:02 +02:00
oSumAtrIX
28a19c4120
feat: decancer user names 2022-08-09 18:54:35 +02:00
oSumAtrIX
ba7b82a6de
feat: migrate to command framework 2022-08-09 18:08:16 +02:00