From 7423ef5260631b42d095d8e6b5f452c13cba933b Mon Sep 17 00:00:00 2001 From: maskduck Date: Fri, 17 May 2024 22:27:49 +0700 Subject: [PATCH 1/2] Auto load exts --- _orangcbot/__main__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_orangcbot/__main__.py b/_orangcbot/__main__.py index 7fcfb6e..400edb6 100644 --- a/_orangcbot/__main__.py +++ b/_orangcbot/__main__.py @@ -65,6 +65,8 @@ async def on_command_error( bot.load_extension("extensions.dns") bot.load_extension("extensions.suggestions") bot.load_extension("extensions.delete_response") +bot.load_extension("extensions.archwiki") +bot.load_extension("extensions.nixwiki") if os.getenv("HASDB"): bot.load_extension("extensions.tags_reworked") # bot.load_extension("extensions.forum") From 59d3e632c885e4785ff95dc2bd021c1ce1050be8 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 17 May 2024 15:29:11 +0000 Subject: [PATCH 2/2] style: auto fixes from pre-commit hooks --- _orangcbot/extensions/archwiki.py | 8 ++++---- _orangcbot/extensions/nixwiki.py | 8 ++++---- _orangcbot/extensions/rules.py | 5 +++-- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/_orangcbot/extensions/archwiki.py b/_orangcbot/extensions/archwiki.py index 8d57f28..1f082da 100644 --- a/_orangcbot/extensions/archwiki.py +++ b/_orangcbot/extensions/archwiki.py @@ -1,11 +1,11 @@ from __future__ import annotations -from nextcord.ext import commands, menus -import nextcord - -import aiohttp from typing import TYPE_CHECKING, Any, Final, Generic, TypeVar + +import aiohttp +import nextcord import typing_extensions +from nextcord.ext import commands, menus T = TypeVar("T") diff --git a/_orangcbot/extensions/nixwiki.py b/_orangcbot/extensions/nixwiki.py index e437b65..afabad9 100644 --- a/_orangcbot/extensions/nixwiki.py +++ b/_orangcbot/extensions/nixwiki.py @@ -1,11 +1,11 @@ from __future__ import annotations -from nextcord.ext import commands, menus -import nextcord - -import aiohttp from typing import TYPE_CHECKING, Generic, TypeVar +import aiohttp +import nextcord +from nextcord.ext import commands, menus + T = TypeVar("T") diff --git a/_orangcbot/extensions/rules.py b/_orangcbot/extensions/rules.py index 1dae0e7..6ee9d2f 100644 --- a/_orangcbot/extensions/rules.py +++ b/_orangcbot/extensions/rules.py @@ -1,8 +1,9 @@ from __future__ import annotations -from nextcord.ext import commands, menus + +from typing import Final, List, Optional, Tuple import nextcord -from typing import Final, List, Tuple, Optional +from nextcord.ext import commands, menus RULES: Final[List[str]] = [ "Follow Discord's ToS and Community Guidelines.",