Get inventory handler

This commit is contained in:
Ben 2019-06-07 00:45:52 +01:00
parent 86da66da4d
commit 63fd52e93d

View File

@ -0,0 +1,8 @@
from houdini import handlers
from houdini.handlers import XTPacket
@handlers.handler(XTPacket('i', 'gi'))
@handlers.allow_once()
async def handle_get_inventory(p):
await p.send_xt('gi', *p.data.inventory.keys())