diff options
author | 2021-04-20 15:46:30 -0400 | |
---|---|---|
committer | 2021-04-20 15:46:30 -0400 | |
commit | cda51f67c08df73951faa960858d72da281cfb74 (patch) | |
tree | c60925226262cbca2ccf6a3db139dff669aa2831 /bot/exts/evergreen/pythonfacts.py | |
parent | Clean Up Christmas Season (diff) | |
parent | chore: ctx.channel.send -> ctx.send (diff) |
Merge branch 'spring-cleanup' of https://github.com/ToxicKidz/sir-lancebot into spring-cleanup
Diffstat (limited to 'bot/exts/evergreen/pythonfacts.py')
-rw-r--r-- | bot/exts/evergreen/pythonfacts.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/bot/exts/evergreen/pythonfacts.py b/bot/exts/evergreen/pythonfacts.py index 457c2fd3..73234d55 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,9 +15,6 @@ 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: - self.bot = bot - @commands.command(name='pythonfact', aliases=['pyfact']) async def get_python_fact(self, ctx: commands.Context) -> None: """Sends a Random fun fact about Python.""" @@ -28,6 +26,6 @@ class PythonFacts(commands.Cog): await ctx.send(embed=embed) -def setup(bot: commands.Bot) -> None: - """Load PythonFacts Cog.""" +def setup(bot: Bot) -> None: + """Load the PythonFacts Cog.""" bot.add_cog(PythonFacts(bot)) |