X-Git-Url: https://plomlompom.com/repos/foo.html?a=blobdiff_plain;f=new2%2Fplomrogue%2Fcommands.py;h=09f22c081beb346070f5bbc7175110577471378b;hb=2595413918ab08fe7aa5b0772abf2420dc89d175;hp=79a4678b1b8133b969e589729d90498e235a2dc8;hpb=a0afb82a75abf2907e57ba5e6d2244fb02613a7c;p=plomrogue2-experiments diff --git a/new2/plomrogue/commands.py b/new2/plomrogue/commands.py index 79a4678..09f22c0 100644 --- a/new2/plomrogue/commands.py +++ b/new2/plomrogue/commands.py @@ -34,3 +34,7 @@ def cmd_QUERY(game, target_nick, msg, connection_id): raise GameError('target user offline') raise GameError('can only query with registered nicknames') cmd_QUERY.argtypes = 'string string' + +def cmd_PING(game, connection_id): + game.io.send('PONG') +cmd_QUERY.argtypes = ''