Updated example.
This commit is contained in:
parent
7d6ad67f97
commit
4d1b1fa974
@ -95,8 +95,8 @@ class Bot:
|
||||
await self.on_mention(data.username, data.user_nick, data.channel_uid, data.message)
|
||||
else:
|
||||
await self.on_message(data.username, data.user_nick, data.channel_uid, data.message)
|
||||
except AttributeError:
|
||||
logger.debug("Event unhandled regarding message: " + data.message)
|
||||
except AttributeError as ex:
|
||||
logger.exception(ex)
|
||||
except Exception as ex:
|
||||
logger.exception(ex)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user