def main(): import sys if len(sys.argv) < 2: print "Usage: bot <config file>" conf = BotConfig() conf.parseFile(sys.argv[1]) bot = Hangmanemone(conf.channel, conf.nick, conf.server, conf.port, conf.password) bot.start()
def main(): import sys if len(sys.argv) < 2: print "Usage: bot <config file>" conf = BotConfig() conf.parseFile(sys.argv[1]) bot = MusselBot(conf.channel, conf.nick, conf.server, conf.port, conf.password, conf.rules) bot.start()