Skip to content

Commit

Permalink
[BoostUtils] add cog setup
Browse files Browse the repository at this point in the history
  • Loading branch information
japandotorg committed Mar 19, 2024
1 parent 47a2a1c commit d253ccc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions boostutils/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
from redbot.core.bot import Red

from .core import BoostUtils


async def setup(bot: Red) -> None:
cog: BoostUtils = BoostUtils(bot)
await bot.add_cog(cog)
4 changes: 2 additions & 2 deletions boostutils/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class BoostUtils(
__author__: Final[List[str]] = ["inthedark.org"]
__version__: Final[str] = "0.1.0"

def __init__(self, bot: Red, _args: Any) -> None:
super().__init__(*_args)
def __init__(self, bot: Red) -> None:
super().__init__()
self.bot: Red = bot
self.config: Config = Config.get_conf(
self,
Expand Down

0 comments on commit d253ccc

Please sign in to comment.