improved logging output
This commit is contained in:
@@ -27,8 +27,8 @@ class GifJoke(Joke):
|
||||
if hasattr(self, 'chance'):
|
||||
roll = random.random()
|
||||
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
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user