From 066b391e0e3b644353e6bafe10656ea902e06780 Mon Sep 17 00:00:00 2001 From: Florian Jung Date: Tue, 25 Aug 2015 00:49:21 +0200 Subject: allow specification of nickname --- main.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index fd75b42..146087a 100644 --- a/main.py +++ b/main.py @@ -27,6 +27,11 @@ for i in range(1,10): # 10 connection attempts token = sys.argv[1] addr, *_ = utils.get_party_address(token) print("using party token") + + try: + nick = sys.argv[2] + except: + nick = "test cell pls ignore" except: addr, token, *_ = utils.find_server() print("joining random game") @@ -40,7 +45,7 @@ for i in range(1,10): # 10 connection attempts c.disconnect() -c.player.nick="test cell pls ignore" +c.player.nick=nick # initialize GUI -- cgit v1.2.3