Commit graph

116 commits

Author SHA1 Message Date
1fd80ff074
fix(moderation): hopefully fixed history command trying to convert NULL to a value
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-06 13:32:22 -04:00
0c006432d8
fix(moderation): moderations are now sorted in descending order by ID in history command
Some checks failed
Pylint / Pylint (push) Failing after 1m14s
2023-10-06 13:27:54 -04:00
45a1edf0d0
fix(history): fixed two broken method calls
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-06 13:24:36 -04:00
2f26da72ab
feat(moderation): added history command
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-06 13:22:30 -04:00
477673b384
fix(moderation): handle unbans, unmutes, bans seperately in resolve command 2023-10-06 12:46:51 -04:00
0d180d16c4
fix(moderation): fixed markdown being applied to usernames
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-06 10:50:59 -04:00
d55d37954d
fix(moderation): fixed resolve_query being broken
All checks were successful
Pylint / Pylint (push) Successful in 1m14s
2023-10-06 10:49:05 -04:00
fb2e99bbcd
fix(moderation): fixed resolve not unmuting/unbanning people
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
2023-10-06 10:46:06 -04:00
9524bd753c
fix(moderation): hopefully fixed messages logging twice to console
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-06 10:27:57 -04:00
6eb086f8cb
feat(moderation): improved logging
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
2023-10-06 10:25:13 -04:00
da469e7d35
fix(moderation): fixed error in handle_expiry if a table doesn't exist yet
All checks were successful
Pylint / Pylint (push) Successful in 1m11s
2023-10-06 10:18:55 -04:00
8a3ed15ee0
feat(moderation): added resolved_by field to mysql tables
All checks were successful
Pylint / Pylint (push) Successful in 1m11s
2023-10-06 10:07:52 -04:00
d1d5bec732
fix(moderation): fixed resolve not commiting its database changes
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-06 09:53:59 -04:00
bd17b6e88a
misc(moderation): added a seperate method for retrieving a user's information, instead of doing it twice in embed_factory
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-06 09:45:32 -04:00
2fb7fd2d0c
fix(moderation): awaited coroutines
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-06 09:36:23 -04:00
9adfe1461f
feat(moderation): offloading all embed generation to embed_factory method
All checks were successful
Pylint / Pylint (push) Successful in 1m14s
2023-10-06 09:34:30 -04:00
fedd5f6799
fix(moderation): fixed resolve command
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
2023-10-06 09:11:22 -04:00
5fa62fceca
fix(moderation): pylint fixes
All checks were successful
Pylint / Pylint (push) Successful in 1m15s
2023-10-06 09:04:02 -04:00
4960d40ac9
feat(moderation): improving resolve command
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-05 22:36:42 -04:00
7c88f98a28
fix(moderation): fixed fetching guild configs
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
2023-10-05 20:12:00 -04:00
90e0a4b153
fix(moderation): made dm_users and ignore_other_bots guild-dependent
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
2023-10-05 20:09:42 -04:00
25ac0a3c0c
feat(moderation): added silent options to all moderation commands and a config value for automatically dming moderated users
All checks were successful
Pylint / Pylint (push) Successful in 1m13s
2023-10-05 20:06:07 -04:00
0c004ecf48
fix(moderation): expire_handler now checks for the expired bool instead of the resolved bool
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-05 17:14:04 -04:00
6001c926f2
feat(moderation): added resolve command
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-05 17:09:55 -04:00
eb1cd6aada
fix(moderator): fixed fetching deleted users' cases
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-05 16:55:18 -04:00
bf8032de62
fix(moderation): cog_unload is now a coroutine 2023-10-05 16:44:54 -04:00
819b36d267
fix(moderation): duration is stringified now
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-05 16:38:32 -04:00
613a267797
fix(moderation): time until duration expiry only appears now if the moderation hasn't expired yet
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-05 16:37:01 -04:00
696165239f
feat(moderation): expiry_handler now messages users who are unbanned (or attempts to)
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-05 16:26:45 -04:00
6bfd110b35
fix(moderation): fixed improper kwarg in ban command
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 16:19:01 -04:00
564faeedf2
feat(moderation): tempbans will be handled by handle_expiry every 60 seconds
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 16:15:16 -04:00
f8bc67fe48
fix(moderation): don't set 1 to 1
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 14:15:34 -04:00
ce72d0c6bf
fix(moderation): resolved moderations with a duration will now be considered "expired"
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 14:14:05 -04:00
69191b3b9b
fix(moderation): fixed the handle_expiry task setting expired to 1 on moderations without a duration
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 13:58:18 -04:00
8d9b934fee
fix(moderation): fixed handle_expiry task
Some checks failed
Pylint / Pylint (push) Failing after 1m11s
2023-10-05 13:56:31 -04:00
a8ea15a5c6
fix(moderation): handle_expiry task is now actually started
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-05 13:51:17 -04:00
af011e047b
fix(moderation): wrapped expired in a bool converter in the case command
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 13:50:05 -04:00
db4826e232
fix(moderation): case now uses the expired value to determine if a duration'd moderation has expired
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 13:48:46 -04:00
11da49202d
feat(moderation): expired moderations are now automaticaly marked as such 2023-10-05 13:48:11 -04:00
4083e1890e
fix(moderation): timedelta fixes
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 13:32:22 -04:00
f6615746c9
fix(moderation): added timedelta variable to hopefully fix durations
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 13:28:55 -04:00
c0857a9038
fix(moderation): case fields are no longer inline
Some checks failed
Pylint / Pylint (push) Failing after 1m11s
2023-10-05 13:12:22 -04:00
e22910b27b
fix(moderation): resolved moderations will be set as expired now
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-05 13:11:04 -04:00
df49498da7
fix(moderation): naturaldelta --> precisedelta
Some checks failed
Pylint / Pylint (push) Failing after 1m11s
2023-10-05 13:07:51 -04:00
df4dc53ecc
fix(moderation): fixed /case formatting
Some checks failed
Pylint / Pylint (push) Failing after 1m11s
2023-10-05 13:06:59 -04:00
8eb4039c64
fix(moderation): case now uses fetch_user instead of get_user
Some checks failed
Pylint / Pylint (push) Failing after 1m12s
2023-10-05 13:04:44 -04:00
c783f4032a
feat(moderation): added case command
Some checks failed
Pylint / Pylint (push) Failing after 1m13s
2023-10-05 12:58:57 -04:00
2982b475ca
fix(moderation): using target object instead of target.id for ban command and unban command
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-05 11:22:35 -04:00
008d4b8d57
fix(moderation): you can no longer unban someone who is not banned
All checks were successful
Pylint / Pylint (push) Successful in 1m12s
2023-10-05 11:17:41 -04:00
45a5354299
fix(moderation): fixed fetch_ban on line 303 2023-10-05 11:16:21 -04:00