Add mobile hot detection for rcauto
This commit is contained in:
parent
a0836211d4
commit
06c8369ef2
1 changed files with 4 additions and 1 deletions
|
@ -77,6 +77,9 @@ class UtilCog(commands.Cog):
|
||||||
to_send += " "
|
to_send += " "
|
||||||
elif re.match(r"^[A-Z0-9-()$@!?^'#.]$", letter):
|
elif re.match(r"^[A-Z0-9-()$@!?^'#.]$", letter):
|
||||||
id = emotes[letter]
|
id = emotes[letter]
|
||||||
|
if ctx.author.is_on_mobile():
|
||||||
|
to_send += f":{names[id]}:"
|
||||||
|
else:
|
||||||
to_send += f"<:{names[id]}:{id}>"
|
to_send += f"<:{names[id]}:{id}>"
|
||||||
if len(to_send) > 2000:
|
if len(to_send) > 2000:
|
||||||
await ctx.send("Too long.")
|
await ctx.send("Too long.")
|
||||||
|
|
Loading…
Add table
Reference in a new issue