blob: 984a0546751e701761b72f71c35c2de0bde2bb69 (
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 Bot import Bot
# Uncomment the following line to turn on debugging
#logging.basicConfig(level=logging.DEBUG, format='%(levelname)-8s %(message)s')
def main() :
backend = SimpleBackend()
bot = Bot("bot@cheshir.lit", "mypass", backend, "http://cheshir.lit")
bot.start()
httpFrontend = HTTPFrontend(8080, backend)
httpFrontend.start()
if __name__ == '__main__' :
main()
|