Fix small bug with imports
This commit is contained in:
parent
84ec50791a
commit
75b7ae5ee2
1 changed files with 2 additions and 3 deletions
|
@ -7,7 +7,6 @@ import aiohttp
|
|||
from ButtonPaginator import Paginator
|
||||
from discord import Member
|
||||
from discord import User
|
||||
from discord.commands.ext import Bot
|
||||
from discord.ext import commands
|
||||
from discord_slash import cog_ext
|
||||
from discord_slash import SlashContext
|
||||
|
@ -30,7 +29,7 @@ invites = re.compile(
|
|||
class CTCCog(CacheCog):
|
||||
"""J.A.R.V.I.S. Complete the Code 2 Cog."""
|
||||
|
||||
def __init__(self, bot: Bot):
|
||||
def __init__(self, bot: commands.Bot):
|
||||
super().__init__(bot)
|
||||
self._session = aiohttp.ClientSession()
|
||||
self.url = "https://completethecodetwo.cards/pw"
|
||||
|
@ -162,6 +161,6 @@ class CTCCog(CacheCog):
|
|||
await paginator.start()
|
||||
|
||||
|
||||
def setup(bot: Bot) -> None:
|
||||
def setup(bot: commands.Bot) -> None:
|
||||
"""Add CTCCog to J.A.R.V.I.S."""
|
||||
bot.add_cog(CTCCog(bot))
|
||||
|
|
Loading…
Add table
Reference in a new issue