From 06c8369ef26fb3b7ed402a09c25faac180914aff Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Mon, 5 Jul 2021 00:08:44 -0600 Subject: [PATCH] Add mobile hot detection for rcauto --- jarvis/cogs/util.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jarvis/cogs/util.py b/jarvis/cogs/util.py index ece3ae7..5f0674c 100644 --- a/jarvis/cogs/util.py +++ b/jarvis/cogs/util.py @@ -77,7 +77,10 @@ class UtilCog(commands.Cog): to_send += " " elif re.match(r"^[A-Z0-9-()$@!?^'#.]$", letter): id = emotes[letter] - to_send += f"<:{names[id]}:{id}>" + 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.") else: