diff options
author | 2022-10-25 01:23:20 -0400 | |
---|---|---|
committer | 2022-10-25 01:23:20 -0400 | |
commit | 1a4a147ebe6ce8529e811707dcf545e3393cc29a (patch) | |
tree | de1fd4ba27c64432fc8fb33c7948c14f897ad26e | |
parent | Made arg fix compatible with tests (diff) |
Updated fix
-rw-r--r-- | bot/exts/info/information.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 5aa721a01..80e7a5b6c 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -533,7 +533,13 @@ class Information(Cog): """ # Temporary fix for discord.py greedy string quote conversion bug if not args: - args = ("",) + args = () + elif isinstance(args, str): + msg = ctx.message.content + # Remove the command + if len(msg := msg.split()) > 1: + msg.pop(0) + args = tuple(msg) rules_embed = Embed(title="Rules", color=Colour.og_blurple(), url="https://www.pythondiscord.com/pages/rules") keywords, rule_numbers = [], [] |