From 289684b0f117181c03e4e5ef6616d574da9a1981 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 20 Oct 2018 00:40:15 +0100 Subject: sorry for rehosting ur stuff (。◕ ‿ ◕。) Added original source Fixed readme typo (I fat fingered your username again whoops) Fiddling with golang config --- osrc/watbot_cli.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 osrc/watbot_cli.py (limited to 'osrc/watbot_cli.py') 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] + " " + \ No newline at end of file -- cgit v1.2.3