watbot/osrc/watbot_cli.py
alex 289684b0f1 sorry for rehosting ur stuff (。◕ ‿ ◕。)
Added original source
Fixed readme typo (I fat fingered your username again whoops)
Fiddling with golang config
2018-10-20 00:45:25 +01:00

19 lines
402 B
Python

#!/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>"