aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar vcokltfre <[email protected]>2021-04-11 04:19:58 +0100
committerGravatar vcokltfre <[email protected]>2021-04-11 04:19:58 +0100
commit7c7c6dd2318815bc14e1cb20d5dd5fbd416712a0 (patch)
tree763ebaa93d3537028c392986710705c6470978e3
parentreturn and send message if command isnt found while timing (diff)
fix: use ctx.prefix when suggesting the help command
-rw-r--r--bot/exts/evergreen/timed.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bot/exts/evergreen/timed.py b/bot/exts/evergreen/timed.py
index a0f29838..604204b0 100644
--- a/bot/exts/evergreen/timed.py
+++ b/bot/exts/evergreen/timed.py
@@ -22,7 +22,10 @@ class TimedCommands(commands.Cog):
new_ctx = await self.create_execution_context(ctx, command)
if not new_ctx.command:
- await ctx.send("The command you are trying to time doesn't exist. Use `.help` for a list of commands.")
+ help_command = f"{ctx.prefix}help"
+ error = f"The command you are trying to time doesn't exist. Use `{help_command}` for a list of commands."
+
+ await ctx.send(error)
return
if new_ctx.command.qualified_name == "timed":