summaryrefslogtreecommitdiffstats
blob: 0fefb9d10b39e7a73425c2351935812fa85ef066 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env python

import logging
from SimpleBackend import SimpleBackend
from HTTPFrontend import HTTPFrontend
from ConfigurableBot import ConfigurableBot

# Uncomment the following line to turn on debugging
#logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s')

def main() :
	backend = SimpleBackend()
	bot = ConfigurableBot("bot@cheshir.lit", "mypass", backend, "http://cheshir.lit")
	bot.start()
	httpFrontend = HTTPFrontend(8080, backend)
	httpFrontend.start()

if __name__ == '__main__' :
	main()