add blurb for .gif recognition
This commit is contained in:
10
jeeves.py
10
jeeves.py
@@ -61,6 +61,16 @@ async def on_message(message):
|
|||||||
await message.channel.send(embed=embed)
|
await message.channel.send(embed=embed)
|
||||||
logline = (str(message.author) + ' requested a gif: ' + str(embed_url))
|
logline = (str(message.author) + ' requested a gif: ' + str(embed_url))
|
||||||
logger.info(logline)
|
logger.info(logline)
|
||||||
|
if message.content.endswith('.gif'):
|
||||||
|
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)
|
||||||
|
logline = (str(message.author) + ' requested a gif: ' + str(embed_url))
|
||||||
|
logger.info(logline)
|
||||||
if message.content.startswith('https://giphy.com/'):
|
if message.content.startswith('https://giphy.com/'):
|
||||||
roles = functions.checkrole(message.author.roles)
|
roles = functions.checkrole(message.author.roles)
|
||||||
channel = functions.checkchannel(message.channel.id)
|
channel = functions.checkchannel(message.channel.id)
|
||||||
|
|||||||
Reference in New Issue
Block a user