popcorn9499 / chatBot

a chatbot that will relay messages to different channels and from different services. aka discord irc youtube and twitch
GNU General Public License v3.0
3 stars 0 forks source link

discord emojis #29

Closed popcorn9499 closed 5 years ago

popcorn9499 commented 5 years ago
   custom_emojis = re.findall(r'<:\w*:\d*>', msg.content)
    custom_emojis = [int(e.split(':')[1].replace('>', '')) for e in custom_emojis]
    custom_emojis = [discord.utils.get(client.get_all_emojis(), id=e) for e in custom_emojis]
    # From now, `custom_emojis` is `list` of `discord.Emoji` that `msg` contains.

copied from here https://stackoverflow.com/questions/54859876/how-check-on-message-if-message-has-emoji-for-discord-py

popcorn9499 commented 5 years ago

this has been added for a few days