103 Commits

Author SHA1 Message Date
Ushie
4fbe66762f
feat: use configuration.json 2023-07-06 22:42:44 +02:00
Ushie
fd5ccb5dd6
Update decancer.rs 2023-07-06 22:41:30 +02:00
Ushie
867f624351
feat: use censor to cure names with slurs 2023-07-06 22:41:29 +02:00
Ushie
cc83a390df
fix: send error replies as ephemeral (#71)
Co-authored-by: oSumAtrIX <johan.melkonyan1@web.de>
2023-07-06 22:17:14 +02:00
oSumAtrIX
cb2ec9eb9a
refactor: reformat using cargo 2023-06-22 02:19:52 +02:00
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
bc6e00e15b
feat: remove thread introductions 2023-06-21 22:46:53 +02:00
oSumAtrIX
83c14c9a19
fix: dispatch ThreadCreate event to poise 2023-06-21 21:39:07 +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
67a4c963e0
perf: run message handlers concurrently 2023-06-21 21:17:51 +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
Ushie
66c64e2950
feat(moderation): reorder purge parameters 2023-04-10 22:14:51 +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
3e86a2cdb7
feat: add option to enable or disable pings when polling 2023-03-27 21:34:30 +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
503e095bd0 fix(moderation): properly schedule unmutes 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
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
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
2f67c59bb3
fix(moderation): save overwrites before modifying them 2022-10-07 13:01:30 +02:00
oSumAtrIX
6279a79132
fix: check member role for excluded roles 2022-10-07 12:11:08 +02:00