start_waddle handler

This commit is contained in:
Ben 2020-03-26 22:19:17 +00:00
parent 48dde7a0ee
commit 4b88edbc4d

View File

@ -25,6 +25,11 @@ async def handle_leave_waddle(p):
await p.waddle.remove_penguin(p)
@handlers.handler(XTPacket('w', 'jx'))
async def handle_start_waddle(p, room: Room, waddle: int):
await room.waddles[waddle].add_penguin(p)
@handlers.handler(XTPacket('j', 'jr'), after=handle_join_room)
async def handle_join_room_waddle(p):
if p.waddle: