aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/ping.py
diff options
context:
space:
mode:
authorGravatar Matteo Bertucci <[email protected]>2021-05-15 23:41:20 +0200
committerGravatar GitHub <[email protected]>2021-05-15 23:41:20 +0200
commite6e280cd13236647ffcaa35f522baeb747fbf97e (patch)
treea888762bcd97704f57ad33e8e1bd0d179c3abd2b /bot/exts/evergreen/ping.py
parentMerge pull request #737 from python-discord/latex-don't-load-cog (diff)
parentchore: Apply Iceman's suggestions (diff)
Spring cleanup (#718)
This PR changes a ton of various different bits and pieces. Please see #718 for more information.
Diffstat (limited to 'bot/exts/evergreen/ping.py')
-rw-r--r--bot/exts/evergreen/ping.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/bot/exts/evergreen/ping.py b/bot/exts/evergreen/ping.py
index 07c13524..6be78117 100644
--- a/bot/exts/evergreen/ping.py
+++ b/bot/exts/evergreen/ping.py
@@ -4,13 +4,14 @@ from discord import Embed
from discord.ext import commands
from bot import start_time
+from bot.bot import Bot
from bot.constants import Colours
class Ping(commands.Cog):
"""Get info about the bot's ping and uptime."""
- def __init__(self, bot: commands.Bot):
+ def __init__(self, bot: Bot):
self.bot = bot
@commands.command(name="ping")
@@ -39,6 +40,6 @@ class Ping(commands.Cog):
await ctx.send(f"I started up {uptime_string}.")
-def setup(bot: commands.Bot) -> None:
+def setup(bot: Bot) -> None:
"""Load the Ping cog."""
bot.add_cog(Ping(bot))