Did I find the right examples for you? yes no

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)

src/b/l/blockBox-HEAD/blockbox/server.py   blockBox(Download)
from blockbox.globals import *
from blockbox.heartbeat import Heartbeat
from blockbox.irc_client import ChatBotFactory
from blockbox.persistence import PersistenceEngine as Persist
from blockbox.plugins import *
            self.heartbeat = Heartbeat(self)
        if self.config["use_irc"]:
            self.irc_relay = ChatBotFactory(self)
            reactor.connectTCP(self.conf_irc.get("irc", "server"), self.conf_irc.getint("irc", "port"), self.irc_relay)
        else:

src/b/l/blockBox-HEAD/blockbox/console.py   blockBox(Download)
from blockbox.constants import *
from blockbox.globals import *
from blockbox.irc_client import ChatBotFactory
 
class StdinPlugin(threading.Thread):
                                self.factory.irc_relay.quit("Reloading the IRC Bot...")
                                self.factory.irc_relay = None
                                self.factory.irc_relay = ChatBotFactory(self.factory)
                                reactor.connectTCP(self.factory.conf_irc.get("irc", "server"), self.factory.conf_irc.getint("irc", "port"), self.factory.irc_relay)
                            #elif message[0] == ("irc_unload"):