Close #45, issue was due to capitalization

This commit is contained in:
Zeva Rose 2021-07-19 13:37:28 -06:00
parent 5f3e61f4f2
commit adf33171d2

View file

@ -69,7 +69,9 @@ class UtilCog(commands.Cog):
)
async def _rcauto(self, ctx: SlashContext, text: str):
to_send = ""
if len(text) == 1 and not re.match(r"^[A-Z0-9-()$@!?^'#. ]$", text):
if len(text) == 1 and not re.match(
r"^[A-Z0-9-()$@!?^'#. ]$", text.upper()
):
await ctx.send("Please use ASCII characters.", hidden=True)
return
for letter in text.upper():