diff options
author | 2021-09-03 00:31:12 -0700 | |
---|---|---|
committer | 2021-09-03 00:31:12 -0700 | |
commit | ea47bc617e558929bcee39e6008a57d6dd814aa1 (patch) | |
tree | c40e2f23e55119fb33f83271d227103cb9be7c6f /bot/exts/evergreen/realpython.py | |
parent | Improved consistency for codeblocks to end with a newline (diff) | |
parent | Merge pull request #802 from python-discord/decorator-factory/typehints-fix (diff) |
Merge branch 'main' into android-codeblock-fix
Diffstat (limited to 'bot/exts/evergreen/realpython.py')
-rw-r--r-- | bot/exts/evergreen/realpython.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bot/exts/evergreen/realpython.py b/bot/exts/evergreen/realpython.py index 5d9e5c5c..ef8b2638 100644 --- a/bot/exts/evergreen/realpython.py +++ b/bot/exts/evergreen/realpython.py @@ -5,7 +5,7 @@ from urllib.parse import quote_plus from discord import Embed from discord.ext import commands -from bot import bot +from bot.bot import Bot from bot.constants import Colours logger = logging.getLogger(__name__) @@ -26,7 +26,7 @@ ERROR_EMBED = Embed( class RealPython(commands.Cog): """User initiated command to search for a Real Python article.""" - def __init__(self, bot: bot.Bot): + def __init__(self, bot: Bot): self.bot = bot @commands.command(aliases=["rp"]) @@ -76,6 +76,6 @@ class RealPython(commands.Cog): await ctx.send(embed=article_embed) -def setup(bot: bot.Bot) -> None: +def setup(bot: Bot) -> None: """Load the Real Python Cog.""" bot.add_cog(RealPython(bot)) |