54 Commits

Author SHA1 Message Date
oSumAtrIX
736f08fe6e
refactor: apply clippy lint 2023-06-22 01:44:34 +02:00
oSumAtrIX
88902ace64
fix: check parent channels when thread_option is present 2023-06-22 01:19:35 +02:00
oSumAtrIX
b470563aab
feat: add thread options to message responses 2023-06-21 23:58:17 +02:00
oSumAtrIX
26c3c5fedc
feat: remove media channels 2023-06-21 21:38:43 +02:00
oSumAtrIX
895f3c19d3
chore: remove useless trace log 2023-06-21 21:38:16 +02:00
oSumAtrIX
16db9b39f1
refactor: use proper file names 2023-06-21 21:15:53 +02:00
oSumAtrIX
580235beb8
feat: make configurations optional 2023-05-28 02:46:33 +02:00
Ushie
8f10edd7dc
feat(parse-duration): use better crate 2023-05-12 03:59:06 +03:00
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
oSumAtrIX
f6d9817bb1
feat: send code embeds as files 2023-03-30 01:57:08 +02:00
oSumAtrIX
991a90cfa9
feat: clarify poll eligibility 2023-03-27 22:03:08 +02:00
oSumAtrIX
8fad7e71b6
feat: add thumbnail and footer to interaction response embed 2023-03-27 02:42:53 +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
oSumAtrIX
b9fa498950
fix: use correct substitute name if necessary 2023-03-13 05:09:48 +01:00
oSumAtrIX
ccc3834210
feat: cure names that don't start with an alphabetic character 2023-03-13 05:08:15 +01:00
Ax333l
9b7b2d49d5
style(clippy): use variables in the format string directly 2023-02-03 19:29:47 +01:00
Ax333l
b2fda777e4
chore(poll): update target url 2023-02-03 17:14:41 +00:00
Ax333l
d7dc351605
feat(poll api): use hmac and base64 2023-01-12 22:11:10 +01:00
Ax333l
5229cd6654
feat(poll api): improve error handling (#52) 2023-01-09 20:34:56 +00:00
Ax333l
05ff0a27d2
fix(moderation): properly convert UserId to Member (#50) 2023-01-07 00:03:46 +00:00
oSumAtrIX
8376eb9b4e
feat: simplify code block embeds 2023-01-07 00:02:31 +01:00
oSumAtrIX
7e2db945a0
fix: correctly find slice_end 2023-01-06 05:23:27 +01:00
oSumAtrIX
f754cd3107
refactor: apply clippy suggestions 2023-01-06 05:16:44 +01:00
oSumAtrIX
6cc775a2e4
feat(misc): embed code links 2023-01-06 05:07:21 +01:00
Ax333l
bf0c34e167 fix(moderation): don't fail when taken_roles is empty 2023-01-04 17:02:34 +01:00
Ax333l
99c476df9a
feat(poll api): hash discord user id (#48) 2023-01-04 12:48:27 +00: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
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
oSumAtrIX
b0ce5ae370
fix(media-channel): correctly check for admin status 2022-11-08 00:28:22 +01:00
oSumAtrIX
fdf1dca2a1
fix(media-channel): change order of condition check 2022-10-24 19:07:32 +02:00
oSumAtrIX
fd8ca4215d
fix(media-channel): check if message contains attachment 2022-10-23 05:15:57 +02:00
oSumAtrIX
6279a79132
fix: check member role for excluded roles 2022-10-07 12:11:08 +02:00
oSumAtrIX
6e9f20df05
fix(moderation): only mute on rejoin if previously muted 2022-10-07 11:03:12 +02:00
oSumAtrIX
97c064ce7f
feat: do not cure bots 2022-09-21 00:00:16 +02:00
Palm
8af95f03bc
fix: exclude dash and underscore for decancer 2022-09-08 06:59:40 +07:00
oSumAtrIX
c600c510a7
feat: remove ocr 2022-09-07 04:24:01 +02:00
oSumAtrIX
aee3c0f60a
Merge branch 'main' 2022-08-30 02:40:06 +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
afb7e79b67
feat: ocr & mute on rejoin (#20) 2022-08-27 02:23:35 +02:00
oSumAtrIX
042fc8c466
feat: handle mute when rejoining the server 2022-08-25 23:15:09 +02:00
oSumAtrIX
23bc1aa306
feat: work in progress ocr auto responder 2022-08-25 21:34:52 +02:00
oSumAtrIX
3ad345b009
perf: clone Arc of data.database 2022-08-25 03:36:23 +02:00
oSumAtrIX
ef1ddf50fd
refactor: remove unused lifetime 2022-08-21 22:51:00 +02:00
oSumAtrIX
3f1d6af569
refactor: remove unnecessary mutex 2022-08-21 22:43:42 +02:00