From 4d22554396e326539b05ac65a83b844a8dec965c Mon Sep 17 00:00:00 2001 From: Ionite Date: Tue, 25 Oct 2022 00:45:08 -0400 Subject: Temporary fix for greedy parsing freezing --- bot/exts/info/information.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bot/exts/info/information.py b/bot/exts/info/information.py index 2592e093d..088d0af6e 100644 --- a/bot/exts/info/information.py +++ b/bot/exts/info/information.py @@ -524,13 +524,16 @@ class Information(Cog): await self.send_raw_content(ctx, message, json=True) @command(aliases=("rule",)) - async def rules(self, ctx: Context, *args: Optional[str]) -> Optional[Set[int]]: + async def rules(self, ctx: Context, arg: Optional[str]) -> Optional[Set[int]]: """ Provides a link to all rules or, if specified, displays specific rule(s). It accepts either rule numbers or particular keywords that map to a particular rule. Rule numbers and keywords can be sent in any order. """ + # Temporary fix for discord.py greedy string quote conversion bug + args = (arg or "",) + rules_embed = Embed(title="Rules", color=Colour.og_blurple(), url="https://www.pythondiscord.com/pages/rules") keywords, rule_numbers = [], [] -- cgit v1.2.3