Exemple #1
0
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()
Exemple #2
0
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()