Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #45 from is-a-dev/developments
Browse files Browse the repository at this point in the history
Auto load exts
  • Loading branch information
MaskDuck authored May 17, 2024
2 parents d53dc79 + 59d3e63 commit 8e15c14
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
1 change: 1 addition & 0 deletions _orangcbot/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ async def on_command_error(
bot.load_extension("extensions.delete_response")
bot.load_extension("extensions.nixwiki")
bot.load_extension("extensions.archwiki")

if os.getenv("HASDB"):
bot.load_extension("extensions.tags_reworked")
# bot.load_extension("extensions.forum")
Expand Down
8 changes: 4 additions & 4 deletions _orangcbot/extensions/archwiki.py
Original file line number Diff line number Diff line change
@@ -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")

Expand Down
8 changes: 4 additions & 4 deletions _orangcbot/extensions/nixwiki.py
Original file line number Diff line number Diff line change
@@ -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")


Expand Down
5 changes: 3 additions & 2 deletions _orangcbot/extensions/rules.py
Original file line number Diff line number Diff line change
@@ -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.",
Expand Down

0 comments on commit 8e15c14

Please sign in to comment.