fix small consistency error in the logging
This commit is contained in:
14
jeeves.py
14
jeeves.py
@@ -35,6 +35,8 @@ async def on_message(message):
|
|||||||
else:
|
else:
|
||||||
msg = bothelp.help()
|
msg = bothelp.help()
|
||||||
await message.author.send(msg)
|
await message.author.send(msg)
|
||||||
|
logline = (str(message.author) + ' requested help')
|
||||||
|
logger.info(logline)
|
||||||
# giphy and tenor both have different structures to their links
|
# giphy and tenor both have different structures to their links
|
||||||
if message.content.startswith('https://tenor.com/'):
|
if message.content.startswith('https://tenor.com/'):
|
||||||
roles = functions.checkrole(message.author.roles)
|
roles = functions.checkrole(message.author.roles)
|
||||||
@@ -47,8 +49,8 @@ async def on_message(message):
|
|||||||
if channel is True:
|
if channel is True:
|
||||||
if roles is not True:
|
if roles is not True:
|
||||||
await message.channel.send(embed=embed)
|
await message.channel.send(embed=embed)
|
||||||
logger.info(message.author)
|
logline = (str(message.author) + ' requested a gif: ' + str(gif_url))
|
||||||
logger.info(gif_url)
|
logger.info(logline)
|
||||||
if message.content.startswith('https://c.tenor.com/'):
|
if message.content.startswith('https://c.tenor.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)
|
||||||
@@ -57,8 +59,8 @@ async def on_message(message):
|
|||||||
if channel is True:
|
if channel is True:
|
||||||
if roles is not True:
|
if roles is not True:
|
||||||
await message.channel.send(embed=embed)
|
await message.channel.send(embed=embed)
|
||||||
logger.info(message.author)
|
logline = (str(message.author) + ' requested a gif: ' + str(embed_url))
|
||||||
logger.info(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)
|
||||||
@@ -69,8 +71,8 @@ async def on_message(message):
|
|||||||
if channel is True:
|
if channel is True:
|
||||||
if roles is not True:
|
if roles is not True:
|
||||||
await message.channel.send(embed=embed)
|
await message.channel.send(embed=embed)
|
||||||
logger.info(message.author)
|
logline = (str(message.author) + ' requested a gif: ' + str(gif_url))
|
||||||
logger.info(gif_url)
|
logger.info(logline)
|
||||||
if message.content.startswith('!roll'):
|
if message.content.startswith('!roll'):
|
||||||
parameters = message.content.split(' ', 1)
|
parameters = message.content.split(' ', 1)
|
||||||
if len(parameters) == 2:
|
if len(parameters) == 2:
|
||||||
|
|||||||
Reference in New Issue
Block a user