Updated example.
This commit is contained in:
parent
736e1c6ee4
commit
1ecb595bee
@ -77,7 +77,7 @@ class Bot:
|
|||||||
except AttributeError:
|
except AttributeError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if data.username == self.user.username:
|
if data.username == self.user['username']:
|
||||||
await self.on_own_message(data.channel_uid, message)
|
await self.on_own_message(data.channel_uid, message)
|
||||||
elif message.startswith("ping"):
|
elif message.startswith("ping"):
|
||||||
await self.on_ping(data.username, data.user_nick, data.channel_uid, data.message.lstrip("ping ").strip())
|
await self.on_ping(data.username, data.user_nick, data.channel_uid, data.message.lstrip("ping ").strip())
|
||||||
|
Loading…
Reference in New Issue
Block a user