From 1ecb595beeb75a3fb510a0272c75a2feb2d1bd81 Mon Sep 17 00:00:00 2001 From: retoor Date: Thu, 13 Feb 2025 10:40:22 +0100 Subject: [PATCH] Updated example. --- src/snekbot/bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())