diff options
| author | 2021-04-19 20:20:48 +0100 | |
|---|---|---|
| committer | 2021-04-19 20:20:48 +0100 | |
| commit | 1ed857d9093481387720ac1dc4041a64a2c9c593 (patch) | |
| tree | 909724207ba5493db3f0871a74efa1198d34fc59 /bot/exts/evergreen/timed.py | |
| parent | Merge pull request #673 from janine9vn/int-eval (diff) | |
chore: switch commands.Bot typehints to bot.bot's Bot
Diffstat (limited to '')
| -rw-r--r-- | bot/exts/evergreen/timed.py | 4 | 
1 files changed, 3 insertions, 1 deletions
| diff --git a/bot/exts/evergreen/timed.py b/bot/exts/evergreen/timed.py index 5f177fd6..35ca807c 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: +def setup(bot: Bot) -> None:      """Cog load."""      bot.add_cog(TimedCommands(bot)) | 
