Ejemplo n.º 1
0
def main(args=sys.argv[1:], reactor=reactor):
    opts = parse_args(args)
    init_logging(getattr(logging, opts.loglevel))

    c = config.load(FilePath(os.path.expanduser('~/.leastbot/')))

    ircclient = irc.Client(
        reactor,
        c.public.irc.host,
        c.public.irc.port,
        c.public.irc.nick,
        c.secret.irc.password,
        c.public.irc.nickserv,
        c.public.irc.channel)

    s = webserver.WebServer(
        reactor,
        c.public.web.port,
        c.secret.web.githubsecret,
        ircclient.handle_github_notification)

    s.listen()
    ircclient.connect()

    reactor.run()
Ejemplo n.º 2
0
 def _load(self):
     return config.load(self.m_configdir)