diff --git a/src/snekbot/bot.py b/src/snekbot/bot.py index 008adc1..e26e1e8 100644 --- a/src/snekbot/bot.py +++ b/src/snekbot/bot.py @@ -77,7 +77,7 @@ class Bot: except AttributeError: continue - if data.username == self.user.username: + if data.username == self.user['username']: await self.on_own_message(data.channel_uid, message) elif message.startswith("ping"): await self.on_ping(data.username, data.user_nick, data.channel_uid, data.message.lstrip("ping ").strip())