Now parsing custom emoji

This commit is contained in:
JustMaffie 2017-05-28 23:46:26 +02:00
parent 82bccb7188
commit 4016f816c1

View File

@ -14,13 +14,4 @@ def parseEmoji(textToParse, guild_id):
for emoji2 in emojis:
if name.lower is emoji2.replace(":", "").lower():
newText = newText.replace(":{}:".format(name), "<img src='https://cdn.discordapp.com/emojis/{}.png'></img>".format(id))
return newText
#Default emoji object here
#{
#"require_colons": true,
#"managed": false,
#"name": "sh",
#"roles": [],
#"id": "318499652175396866"
#}
return newText