diff options
Diffstat (limited to 'osrc/watbot_cli.py')
-rw-r--r-- | osrc/watbot_cli.py | 19 |
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 |