Commit graph

179 commits

Author SHA1 Message Date
3383e84221
fix(aurora): fixed some issues with aiosqlite 2024-06-05 00:39:56 -04:00
56a2f96a2d
feat(aurora): made database.connect() into an async context manager 2024-06-05 00:36:12 -04:00
eebddd6e89
fix(aurora): override aiosqlite's logging level to warning 2024-06-05 00:25:19 -04:00
5cbf4e7e47
feat(aurora): migrated to aiosqlite 2024-06-05 00:14:43 -04:00
cb420d2fc4
fix(aurora): pylint/ruff fix
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 37s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 54s
2024-06-04 11:52:34 -04:00
04223c3c55
Merge branch 'main' into aurora-pydantic
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 46s
2024-06-04 11:48:15 -04:00
9b0f977016
feat(aurora): moved get_next_case_number() into the Moderation class, along with removing from_sql and get_all_cases. also added some other classmethods to replace those.
also modified message_factory and its calls to add a new kwarg
2024-06-04 00:04:11 -04:00
bbe8b281d1
misc(aurora): changed two typehints in aurora.utilities.utils and added other typehints 2024-06-03 23:46:22 -04:00
be253b668b
feat(aurora): converted /history to use the new Moderation sql queries
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 45s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 1m9s
2024-06-03 01:07:00 -04:00
d646754466
feat(aurora): added a bunch of functionality to the Moderation model
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 44s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 1m11s
2024-06-03 00:47:56 -04:00
76f176d4cc
feat(aurora): change history to use Moderation.from_sql_all()
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 45s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 1m10s
2024-06-03 00:22:32 -04:00
73c9104882
fix(aurora): cast to string before checking length to avoid typeerrors when reason is None
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 40s
2024-05-24 04:26:58 -04:00
7f71ca3d6d
fix(aurora): change interval metadata
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 41s
2024-05-24 04:16:48 -04:00
9a4f19f4a1
fix(aurora): show metadata key/value pairs in /case
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 41s
2024-05-24 04:12:28 -04:00
67b33a2eb8
feat(aurora): added a slowmode command
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 39s
2024-05-24 03:46:20 -04:00
1405dae49e
fix(aurora): add roles to evidenceformat
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 41s
2024-05-20 20:59:01 -04:00
d91a4f49f9
fix(aurora): fixed import errors
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 42s
2024-05-06 21:39:43 -04:00
ab878739c4
misc(aurora): pep 604 compliance
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 43s
2024-05-06 21:04:08 -04:00
946e14ee3c
fix(aurora): something idk
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 42s
2024-05-06 20:45:22 -04:00
bcc4aa384f
fix(aurora): hopefully fixed the module not found issue?
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 41s
2024-05-06 17:41:14 -04:00
260dd3ef4c
fix(aurora): fixing a ModuleNotFound error
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 40s
2024-05-06 17:35:43 -04:00
c69b3cd032
misc(aurora): import change
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 42s
2024-05-06 17:33:28 -04:00
7dfe94869c
misc(aurora): codebase cleanup
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 41s
2024-05-06 17:23:59 -04:00
ac8cefd779
fix(aurora): pylint fixes
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 43s
2024-05-06 16:47:21 -04:00
15ccd5530a
fix(aurora): fixed a few unboundlocalerrors
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s
2024-05-06 16:37:52 -04:00
d7ca5cab46
feat(aurora): cleaned up the codebase and fixed a whole bunch of bugs
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 42s
2024-05-06 16:34:08 -04:00
53b67e1c95
fix(aurora): convert results into a dictionary before making a Moderation instance out of them
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 43s
2024-05-06 16:07:35 -04:00
d7a8fbe367
fix(aurora): ignore moderations with the id 0 in the history command
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 26s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 40s
2024-05-06 16:02:00 -04:00
f8968e8e9e
feat(aurora): updated /history command
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 29s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 42s
2024-05-06 15:59:43 -04:00
dcda128f11
fix(aurora): edit command will now edit reasons as intended
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s
2024-05-06 15:15:54 -04:00
dc44e8c6de
feat(aurora): migrated /edit to the new model system
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 27s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 39s
2024-05-04 22:01:32 -04:00
2c336ff70c
fix(aurora): fixed a faulty expiration check
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 28s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 41s
2024-05-04 17:15:21 -04:00
6147c8c6d5
feat(aurora): whole bunch of changes to the models and various other things
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 39s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 58s
2024-05-04 16:54:12 -04:00
7dfd9c607a
misc(aurora): moved some stuff around
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 34s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 50s
2024-05-04 15:25:05 -04:00
ca1722fee3
feat(aurora): migrated to a custom json encoder
Some checks failed
Actions / Build Documentation (MkDocs) (pull_request) Successful in 35s
Actions / Lint Code (Ruff & Pylint) (pull_request) Failing after 51s
2024-05-04 15:05:50 -04:00
bd48b43517
fix(aurora): reduced view timeouts to 60 seconds
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 33s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 46s
2024-05-03 22:21:28 -04:00
d6f33857a3
feat(aurora): added timeouts to configuration views
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Has been cancelled
Actions / Build Documentation (MkDocs) (push) Has been cancelled
2024-05-03 22:20:53 -04:00
6c859d72a8
fix(aurora): pylint fix
All checks were successful
Actions / Build Documentation (MkDocs) (pull_request) Successful in 34s
Actions / Lint Code (Ruff & Pylint) (pull_request) Successful in 49s
2024-05-03 21:45:04 -04:00
af108519f9
feat(aurora): imma be real chief i have no idea what i did this commit 2024-05-03 21:35:29 -04:00
a641b11daa
fix(aurora): fixed the incorrect moderation type being passed to message_factory in /removerole 2024-05-03 21:02:16 -04:00
cd514d0535
fix(aurora): fixed removerole adding roles instead of removing them 2024-05-03 20:56:07 -04:00
908fed37bc
fix(aurora): fixed a TypeError in the expiry handler task 2024-05-03 20:52:29 -04:00
7ef13016d9
fix(aurora): fixed an AttributeError in the expiry handler 2024-05-03 20:51:02 -04:00
877f5e00d3
fix(aurora): adding some more logging to the expiry task 2024-05-03 20:47:19 -04:00
bcef643349
fix(aurora): fixed an incorrectly named column in on_member_join 2024-05-03 20:44:04 -04:00
1a74ce9130
fix(aurora): fixed a broken logging statement 2024-05-03 20:38:07 -04:00
67142c6458
fix(aurora): added more verbose debug logging to the expiry task 2024-05-03 20:37:01 -04:00
dc8138bd89
fix(aurora): added warning logging to the expiry task 2024-05-03 20:32:02 -04:00
f9e807957f
fix(aurora): why was I trying to raise an exception???? 2024-05-03 20:28:26 -04:00
8e59b5a4bd
fix(aurora): added a missing ; to an sql statement 2024-05-03 20:25:42 -04:00
6966ea1613
fix(aurora): added a missing ) in an sql query 2024-05-03 20:24:16 -04:00
752a41855a
fix(aurora): actually fixed the string concatenation bug 2024-05-03 20:21:30 -04:00
0642d5eb42
fix(aurora): fixed a bug in addrole and removerole with string concatenation 2024-05-03 20:18:29 -04:00
ebf739b563
feat(aurora): added a listener to readd roles to a user on guild join 2024-05-03 20:10:26 -04:00
f6b827c64f
feat(aurora): added expiry handling for addrole and removerole 2024-05-03 20:09:48 -04:00
b8a4d247f8
fix(aurora): fixed a bug in /case with exports to codeblocks being improperly formatted 2024-05-03 20:09:23 -04:00
a7fcbc4dab
feat(aurora): implemented removerole command 2024-05-03 20:08:57 -04:00
4344d26096
feat(AntiPolls): added the cog
Some checks failed
Actions / Build Documentation (MkDocs) (push) Successful in 39s
Actions / Lint Code (Ruff & Pylint) (push) Failing after 54s
2024-04-16 10:44:05 -04:00
0955282325
fix(aurora): do not run handle_expiry before Red is ready 2024-04-08 06:24:34 -04:00
9f7244cd65
feat(Aurora): added a respect_hierarchy configuration option and relevant configuration button to [p]aurora set guild, along with functionality that uses this configuration value
All checks were successful
Actions / Build Documentation (MkDocs) (push) Successful in 33s
Actions / Lint Code (Ruff & Pylint) (push) Successful in 43s
2024-04-05 10:43:58 -04:00
5adaca755d
feat(aurora): added documentation link to cog-level help embed 2024-03-29 07:17:39 -04:00
4c603eea46
misc(aurora): version bump
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 26s
Actions / Build Documentation (MkDocs) (push) Successful in 19s
2024-03-08 15:39:37 -05:00
99dddf2fa7
fix(aurora): remove humanize
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 23s
Actions / Build Documentation (MkDocs) (push) Successful in 17s
2024-03-08 14:56:50 -05:00
ba7a5f9208
fix(aurora): fixed an out of range value error if you ban someone for 30000000 years
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 29s
Actions / Build Documentation (MkDocs) (push) Successful in 21s
2024-03-08 14:30:57 -05:00
ddb9f30d6f
fix(aurora): added returns to the errors in the timedelta and relativedelta commands 2024-03-08 14:27:50 -05:00
3b5932bac9
fix(aurora): fixed broken help formatting
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 22s
Actions / Build Documentation (MkDocs) (push) Successful in 19s
2024-03-08 14:21:26 -05:00
f4efcb8ea5
feat(aurora): migrated to Red's builtin timedelta/relativedelta parsing
All checks were successful
Actions / Lint Code (Ruff & Pylint) (push) Successful in 26s
Actions / Build Documentation (MkDocs) (push) Successful in 20s
2024-03-08 14:19:48 -05:00
178a92559c
feat(repo): added help formatters for version numbers to cogs that have them and migrated to using red's inbuilt loggers instead of logging.getLogger
Some checks failed
Actions / Lint Code (Ruff & Pylint) (push) Failing after 31s
Actions / Build Documentation (MkDocs) (push) Successful in 26s
2024-03-07 03:38:34 -05:00
858a1bae8a
fix(repo): ruff fixes / removing pylint exceptions
All checks were successful
Actions / Lint Code (Ruff) (push) Successful in 6s
Actions / Build Documentation (MkDocs) (push) Successful in 25s
2024-02-14 11:04:26 -05:00
9c293750cb
fix(aurora): ruff fixes
All checks were successful
Actions / Lint Code (Ruff) (push) Successful in 5s
Actions / Build Documentation (MkDocs) (push) Successful in 24s
2024-02-14 10:39:26 -05:00
f7d2f1a564
misc(aurora): less restrictive type requirements for some utils functions 2024-02-13 23:18:44 +00:00
0ccad57476
fix(aurora): pylint fix
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 22s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 12:55:34 -05:00
6be92f05db
fix(aurora): fixed /history not showing roles correctly
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 16s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 12:16:41 -05:00
ba5b128afc
fix(aurora): figuring out why I can't get a role from an id
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 17s
Actions / Build Documentation (MkDocs) (push) Successful in 13s
2024-02-02 12:09:45 -05:00
7d2b71667a
fix(aurora): fixing user dm messages in addrole
Some checks failed
Actions / Lint Code (Pylint) (push) Failing after 17s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 12:05:05 -05:00
21dabccb48
fix(aurora): fixed mysql_log in addrole (again)
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 16s
Actions / Build Documentation (MkDocs) (push) Successful in 13s
2024-02-02 11:54:01 -05:00
c1d2e6d28a
fix(aurora): fixed mysql_log in addrole
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 16s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 11:53:08 -05:00
5b18b6612a
fix(aurora): defer before sending the user a message
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 17s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 11:51:44 -05:00
4d321006c8
fix(aurora): defer the interaction so it doesn't expire
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 30s
Actions / Build Documentation (MkDocs) (push) Successful in 13s
2024-02-02 11:47:51 -05:00
d1afd62114
fix(aurora): fixed hanging
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 17s
Actions / Build Documentation (MkDocs) (push) Successful in 13s
2024-02-02 11:43:27 -05:00
efe16cefac
fix(aurora): cleaning up code more
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 17s
Actions / Build Documentation (MkDocs) (push) Successful in 13s
2024-02-02 11:41:44 -05:00
4ca9760284
fix(aurora): cleaned up addrole
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 16s
Actions / Build Documentation (MkDocs) (push) Successful in 13s
2024-02-02 11:36:46 -05:00
c9c2e1f955
fix(aurora): oops i set reason instead of role
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 17s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 11:33:17 -05:00
a83a63dd6a
fix(aurora): addrole should take a role argument
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 18s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 11:32:20 -05:00
018eb5ed28
misc(aurora): version bump
All checks were successful
Actions / Lint Code (Pylint) (push) Successful in 15s
Actions / Build Documentation (MkDocs) (push) Successful in 12s
2024-02-02 11:30:20 -05:00
519e3056ab
feat(aurora): added addrole command 2024-02-02 11:21:56 -05:00
a7d8a20c57
fix(aurora): fixed incorrect example usage for [p]aurora timedelta
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 17s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 13s
2024-01-16 14:29:57 +00:00
950d4abf6a
fix(aurora): pylint fixes
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 16s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 12s
2024-01-16 14:26:54 +00:00
46a290aad3
feat(aurora): merged all of the changes made in the configuration rewrite into the codebase of the cog itself
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 17s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 13s
2024-01-16 14:23:45 +00:00
de5f21eb20
Revert "fix(aurora): fixed typeerror"
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 15s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 12s
This reverts commit 8fe8800853.
2024-01-15 14:06:58 +00:00
8fe8800853
fix(aurora): fixed typeerror
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 14s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 13s
2024-01-15 14:06:02 +00:00
e28e32d0c0
feat(aurora): splitting out the role configuration into different commands
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 15s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s
2024-01-15 14:03:02 +00:00
606cd76ec4
fix(aurora): pylint fix
All checks were successful
Actions / Lint Code (Pylint) (pull_request) Successful in 17s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 12s
2024-01-15 11:51:54 +00:00
166f5bc1ea
fix(aurora): pylint fixes
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 15s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 11s
2024-01-15 11:49:20 +00:00
e73616774a
fix(aurora): fixed missing return 2024-01-14 06:41:11 +00:00
c42b4eca2d
feat(aurora): starting work on the config rewrite
Some checks failed
Actions / Lint Code (Pylint) (pull_request) Failing after 15s
Actions / Build Documentation (MkDocs) (pull_request) Successful in 12s
2024-01-13 15:44:08 +00:00
04101cfd1b
fix(aurora): fixed exporting moderation history
All checks were successful
Build Documentation and Lint Code / build and lint (push) Successful in 25s
2024-01-12 07:07:24 +00:00
aefb68e913
misc(aurora): reworked embed_factory
All checks were successful
Build Documentation and Lint Code / build and lint (push) Successful in 22s
2024-01-08 09:18:54 +00:00
826d76253d
fix(aurora): use guild color instead of bot color for handle_expiry
All checks were successful
Build Documentation and Lint Code / build and lint (push) Successful in 24s
2024-01-08 06:18:02 +00:00
6d8b99cf76
fix(aurora): fixed colors being wrong occasionally
All checks were successful
Build Documentation and Lint Code / build and lint (push) Successful in 25s
2024-01-08 06:14:48 +00:00