home · contact · privacy
Add PING.
[plomrogue2-experiments] / new2 / plomrogue / commands.py
index 79a4678b1b8133b969e589729d90498e235a2dc8..09f22c081beb346070f5bbc7175110577471378b 100644 (file)
@@ -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 = ''