diff options
author | Florian Jung <flo@windfisch.org> | 2015-08-25 00:49:21 +0200 |
---|---|---|
committer | Florian Jung <flo@windfisch.org> | 2015-08-25 00:49:21 +0200 |
commit | 066b391e0e3b644353e6bafe10656ea902e06780 (patch) | |
tree | ed2a679f8359b886b7fa1562adc3279d39b0d5e8 /main.py | |
parent | 86db90367b3afb0d5b3c552d22c729255356028f (diff) |
allow specification of nickname
Diffstat (limited to 'main.py')
-rw-r--r-- | main.py | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |