summaryrefslogtreecommitdiffstats
path: root/osrc/watbot_cli.py
diff options
context:
space:
mode:
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