Add mobile hot detection for rcauto

This commit is contained in:
Zeva Rose 2021-07-05 00:08:44 -06:00
parent a0836211d4
commit 06c8369ef2

View file

@ -77,6 +77,9 @@ class UtilCog(commands.Cog):
to_send += " "
elif re.match(r"^[A-Z0-9-()$@!?^'#.]$", letter):
id = emotes[letter]
if ctx.author.is_on_mobile():
to_send += f":{names[id]}:"
else:
to_send += f"<:{names[id]}:{id}>"
if len(to_send) > 2000:
await ctx.send("Too long.")