Updated example.

This commit is contained in:
retoor 2025-02-13 10:40:22 +01:00
parent 736e1c6ee4
commit 1ecb595bee

View File

@ -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())