diff options
author | 2022-08-23 20:46:14 +0100 | |
---|---|---|
committer | 2022-09-21 23:02:55 +0100 | |
commit | cc2dcdcdbf9e6057053bdb72bba848f4c2e19cbd (patch) | |
tree | 75c87793362d786bb2c45fea8fb235435e44c315 /bot/exts/fun/space.py | |
parent | Move startup checks and logs to their own cog (diff) |
Use extension utils from bot-core
Diffstat (limited to 'bot/exts/fun/space.py')
-rw-r--r-- | bot/exts/fun/space.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/exts/fun/space.py b/bot/exts/fun/space.py index 48ad0f96..0bbe0b33 100644 --- a/bot/exts/fun/space.py +++ b/bot/exts/fun/space.py @@ -11,7 +11,6 @@ from discord.ext.commands import Cog, Context, group from bot.bot import Bot from bot.constants import Tokens from bot.utils.converters import DateConverter -from bot.utils.extensions import invoke_help_command logger = logging.getLogger(__name__) @@ -27,6 +26,7 @@ class Space(Cog): def __init__(self, bot: Bot): self.http_session = bot.http_session + self.bot = bot self.rovers = {} self.get_rovers.start() @@ -50,7 +50,7 @@ class Space(Cog): @group(name="space", invoke_without_command=True) async def space(self, ctx: Context) -> None: """Head command that contains commands about space.""" - await invoke_help_command(ctx) + await self.bot.invoke_help_command(ctx) @space.command(name="apod") async def apod(self, ctx: Context, date: Optional[str]) -> None: |