aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts/evergreen/timed.py
diff options
context:
space:
mode:
authorGravatar ToxicKidz <[email protected]>2021-04-20 15:46:30 -0400
committerGravatar ToxicKidz <[email protected]>2021-04-20 15:46:30 -0400
commitcda51f67c08df73951faa960858d72da281cfb74 (patch)
treec60925226262cbca2ccf6a3db139dff669aa2831 /bot/exts/evergreen/timed.py
parentClean Up Christmas Season (diff)
parentchore: 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/timed.py')
-rw-r--r--bot/exts/evergreen/timed.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/exts/evergreen/timed.py b/bot/exts/evergreen/timed.py
index 5f177fd6..42a77346 100644
--- a/bot/exts/evergreen/timed.py
+++ b/bot/exts/evergreen/timed.py
@@ -4,6 +4,8 @@ from time import perf_counter
from discord import Message
from discord.ext import commands
+from bot.bot import Bot
+
class TimedCommands(commands.Cog):
"""Time the command execution of a command."""
@@ -41,6 +43,6 @@ class TimedCommands(commands.Cog):
await ctx.send(f"Command execution for `{new_ctx.command}` finished in {(t_end - t_start):.4f} seconds.")
-def setup(bot: commands.Bot) -> None:
- """Cog load."""
+def setup(bot: Bot) -> None:
+ """Load the Timed cog."""
bot.add_cog(TimedCommands(bot))