diff options
author | 2022-12-14 14:57:30 -0500 | |
---|---|---|
committer | 2022-12-14 14:57:30 -0500 | |
commit | 12d872bf899930599d2cc0e1e921ed5e593741f3 (patch) | |
tree | da986c3bbe27274fc1835550bf2919896ca93aee | |
parent | Bump rapidfuzz from 2.13.4 to 2.13.6 (#1164) (diff) |
Ignore ellipses when suggesting commands
-rw-r--r-- | bot/exts/core/error_handler.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/exts/core/error_handler.py b/bot/exts/core/error_handler.py index f62b3d4e..04ab55d7 100644 --- a/bot/exts/core/error_handler.py +++ b/bot/exts/core/error_handler.py @@ -66,7 +66,9 @@ class CommandErrorHandler(commands.Cog): ) if isinstance(error, commands.CommandNotFound): - await self.send_command_suggestion(ctx, ctx.invoked_with) + # Ignore messages that start with "..", as they were likely not meant to be commands + if not ctx.invoked_with.startswith("."): + await self.send_command_suggestion(ctx, ctx.invoked_with) return if isinstance(error, (InChannelCheckFailure, InMonthCheckFailure)): |