small tweaks to jokes to standardize things a bit, added TODO list of jokes to implement
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user