summaryrefslogtreecommitdiffstats
path: root/osrc/watbot_cli.py
blob: 1dbadf6b61a2157250c4612c3d95a7158c349a54 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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>"