syncplay/syncplayServer.py
Uriziel d7bd7af2b7 Added initial IRC bot support
Fucking miracles, how do they work.
2013-01-24 22:41:39 +01:00

16 lines
629 B
Python

#!/usr/bin/env python
#coding:utf8
from twisted.internet import reactor
from syncplay.server import SyncFactory, SyncIsolatedFactory
from syncplay.ui.ConfigurationGetter import ServerConfigurationGetter
argsGetter = ServerConfigurationGetter()
args = argsGetter.getConfiguration()
if(not args.isolate_rooms):
reactor.listenTCP(int(args.port), SyncFactory(args.password, args.motd_file, args.http_reply_file, args.irc_config_file, args.irc_verbose))
else:
reactor.listenTCP(int(args.port), SyncIsolatedFactory(args.password, args.motd_file, args.http_reply_file, args.irc_config_file, args.irc_verbose))
reactor.run()