summaryrefslogtreecommitdiffstats
path: root/osrc/watbot_cli.py
diff options
context:
space:
mode:
authoralex2018-10-20 00:40:15 +0100
committeralex2018-10-20 00:45:25 +0100
commit289684b0f117181c03e4e5ef6616d574da9a1981 (patch)
tree1a803992f7bec0a46b5838141c72b5192c14ecc6 /osrc/watbot_cli.py
parent64cbb5254ad6308e4dab42cc1e3fdcea9d8d6893 (diff)
downloadwatbot-289684b0f117181c03e4e5ef6616d574da9a1981.tar.gz
watbot-289684b0f117181c03e4e5ef6616d574da9a1981.tar.bz2
watbot-289684b0f117181c03e4e5ef6616d574da9a1981.zip
sorry for rehosting ur stuff (。◕ ‿ ◕。)
Added original source Fixed readme typo (I fat fingered your username again whoops) Fiddling with golang config
Diffstat (limited to 'osrc/watbot_cli.py')
-rw-r--r--osrc/watbot_cli.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/osrc/watbot_cli.py b/osrc/watbot_cli.py
new file mode 100644
index 0000000..1dbadf6
--- /dev/null
+++ b/osrc/watbot_cli.py
@@ -0,0 +1,19 @@
+#!/usr/bin/python
+
+from watbot_config import WatbotConfig
+from watbot_db import WatbotDB
+from watbot_game import WatbotGame
+from watbot_console import WatbotConsole
+
+import sys
+
+if len(sys.argv) > 1:
+
+ db = WatbotDB(WatbotConfig)
+ game = WatbotGame(WatbotConfig, db)
+ con = WatbotConsole(WatbotConfig, game, sys.argv[1])
+
+ con.main_loop()
+else:
+ print "usage: " + sys.argv[0] + " <nickname>"
+ \ No newline at end of file