Updated example.

This commit is contained in:
retoor 2025-02-13 10:31:50 +01:00
parent 7d6ad67f97
commit 4d1b1fa974

View File

@ -95,8 +95,8 @@ class Bot:
await self.on_mention(data.username, data.user_nick, data.channel_uid, data.message) await self.on_mention(data.username, data.user_nick, data.channel_uid, data.message)
else: else:
await self.on_message(data.username, data.user_nick, data.channel_uid, data.message) await self.on_message(data.username, data.user_nick, data.channel_uid, data.message)
except AttributeError: except AttributeError as ex:
logger.debug("Event unhandled regarding message: " + data.message) logger.exception(ex)
except Exception as ex: except Exception as ex:
logger.exception(ex) logger.exception(ex)