diff options
author | 2021-05-13 23:53:38 +0530 | |
---|---|---|
committer | 2021-05-13 23:53:38 +0530 | |
commit | 56896ebc00965de25d69c3781ae1c12235a3b166 (patch) | |
tree | ef0ee156dfc2c789eec481d338cd10d109f2f118 /bot/exts/evergreen/stackoverflow.py | |
parent | remove redundant quote (diff) |
change typehint to bot.Bot
Diffstat (limited to 'bot/exts/evergreen/stackoverflow.py')
-rw-r--r-- | bot/exts/evergreen/stackoverflow.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/stackoverflow.py b/bot/exts/evergreen/stackoverflow.py index 6a65bd0b..bda66f95 100644 --- a/bot/exts/evergreen/stackoverflow.py +++ b/bot/exts/evergreen/stackoverflow.py @@ -6,6 +6,7 @@ from discord import Embed from discord.errors import HTTPException from discord.ext import commands +from bot import bot from bot.constants import Colours, Emojis logger = logging.getLogger(__name__) @@ -25,7 +26,7 @@ ERR_EMBED = Embed( class Stackoverflow(commands.Cog): """Contains command to interact with stackoverflow from discord.""" - def __init__(self, bot: commands.Bot): + def __init__(self, bot: bot.Bot): self.bot = bot @commands.command(aliases=["so"]) @@ -82,7 +83,7 @@ class Stackoverflow(commands.Cog): await ctx.send(embed=search_query_too_long) -def setup(bot: commands.Bot) -> None: +def setup(bot: bot.Bot) -> None: """Loads Stackoverflow Cog.""" bot.add_cog(Stackoverflow(bot)) |