aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/realpython.py
diff options
context:
space:
mode:
authorGravatar ChrisJL <[email protected]>2021-09-03 16:28:04 +0100
committerGravatar GitHub <[email protected]>2021-09-03 16:28:04 +0100
commitcd7060835b5b0d150c6e91d75bc3227ee43db0ba (patch)
tree4264ddbb25e86184255574cfd0e8fa9bb11d7bcb /bot/exts/evergreen/realpython.py
parentHandle status not found with 404 picture (diff)
parentMerge pull request #839 from python-discord/android-codeblock-fix (diff)
Merge branch 'main' into teapot-support
Diffstat (limited to 'bot/exts/evergreen/realpython.py')
-rw-r--r--bot/exts/evergreen/realpython.py6
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))