improved logging output

This commit is contained in:
root
2023-07-25 00:00:14 -05:00
parent fea9009149
commit 55966c5cce

View File

@@ -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)