improved logging output
This commit is contained in:
@@ -27,8 +27,8 @@ class GifJoke(Joke):
|
|||||||
if hasattr(self, 'chance'):
|
if hasattr(self, 'chance'):
|
||||||
roll = random.random()
|
roll = random.random()
|
||||||
if roll > self.chance:
|
if roll > self.chance:
|
||||||
LOGGER.info(f'Roll was too high {roll:.2f} > {self.chance:.2f}')
|
LOGGER.info(f'{message.author.display_name}\'s roll was too high {roll:.2f} > {self.chance:.2f}')
|
||||||
return
|
return
|
||||||
else:
|
else:
|
||||||
LOGGER.info(f'Passed roll threshold {roll:.2f} <= {self.chance:.2f}')
|
LOGGER.info(f'{message.author.display_name} passed roll threshold {roll:.2f} <= {self.chance:.2f}')
|
||||||
await message.reply(self.url)
|
await message.reply(self.url)
|
||||||
|
|||||||
Reference in New Issue
Block a user