fix c.tenor.com links

This commit is contained in:
2021-06-12 16:55:13 +02:00
parent 710647c6fd
commit 3b9a2f5ae7

View File

@@ -48,6 +48,16 @@ async def on_message(message):
await message.channel.send(embed=embed)
logger.info(message.author)
logger.info(gif_url)
if message.content.startswith('https://c.tenor.com/'):
roles = functions.checkrole(message.author.roles)
channel = functions.checkchannel(message.channel.id)
embed_url = message.content
embed = e.set_image(url=embed_url)
if channel is True:
if roles is not True:
await message.channel.send(embed=embed)
logger.info(message.author)
logger.info(embed_url)
if message.content.startswith('https://giphy.com/'):
roles = functions.checkrole(message.author.roles)
channel = functions.checkchannel(message.channel.id)