small tweaks to jokes to standardize things a bit, added TODO list of jokes to implement

This commit is contained in:
2021-08-18 17:14:06 -05:00
parent e1e9da8340
commit 37bf8f7429
2 changed files with 28 additions and 13 deletions

View File

@@ -74,9 +74,9 @@ class RoboPage(discord.Client):
LOGGER.warning(f'No self.data attribute')
for joke in self.jokes:
if (scan_res := joke.scan(message)):
LOGGER.info(f'{joke.__class__.__name__} detected: {message.content}, {scan_res.group()}')
await joke.respond(message, self, scan_res)
if (m := joke.scan(message)) is not None:
LOGGER.info(f'{joke.__class__.__name__} detected: {message.content}, {m.group()}')
await joke.respond(message, self, m)
async def handle_raw_reaction(self, payload: Union[RawReactionActionEvent, RawReactionClearEmojiEvent]):
LOGGER.info(payload)