aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/pythonfacts.py
diff options
context:
space:
mode:
authorGravatar vcokltfre <[email protected]>2021-04-19 20:20:48 +0100
committerGravatar vcokltfre <[email protected]>2021-04-19 20:20:48 +0100
commit1ed857d9093481387720ac1dc4041a64a2c9c593 (patch)
tree909724207ba5493db3f0871a74efa1198d34fc59 /bot/exts/evergreen/pythonfacts.py
parentMerge pull request #673 from janine9vn/int-eval (diff)
chore: switch commands.Bot typehints to bot.bot's Bot
Diffstat (limited to 'bot/exts/evergreen/pythonfacts.py')
-rw-r--r--bot/exts/evergreen/pythonfacts.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/pythonfacts.py b/bot/exts/evergreen/pythonfacts.py
index 457c2fd3..bbc4eb17 100644
--- a/bot/exts/evergreen/pythonfacts.py
+++ b/bot/exts/evergreen/pythonfacts.py
@@ -3,6 +3,7 @@ import itertools
import discord
from discord.ext import commands
+from bot.bot import Bot
from bot.constants import Colours
with open('bot/resources/evergreen/python_facts.txt') as file:
@@ -14,7 +15,7 @@ COLORS = itertools.cycle([Colours.python_blue, Colours.python_yellow])
class PythonFacts(commands.Cog):
"""Sends a random fun fact about Python."""
- def __init__(self, bot: commands.Bot) -> None:
+ def __init__(self, bot: Bot) -> None:
self.bot = bot
@commands.command(name='pythonfact', aliases=['pyfact'])
@@ -28,6 +29,6 @@ class PythonFacts(commands.Cog):
await ctx.send(embed=embed)
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load PythonFacts Cog."""
bot.add_cog(PythonFacts(bot))