summaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
authorFlorian Jung <flo@windfisch.org>2015-08-25 00:49:21 +0200
committerFlorian Jung <flo@windfisch.org>2015-08-25 00:49:21 +0200
commit066b391e0e3b644353e6bafe10656ea902e06780 (patch)
treeed2a679f8359b886b7fa1562adc3279d39b0d5e8 /main.py
parent86db90367b3afb0d5b3c552d22c729255356028f (diff)
allow specification of nickname
Diffstat (limited to 'main.py')
-rw-r--r--main.py7
1 files changed, 6 insertions, 1 deletions
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