コード例 #1
0
ファイル: bot.py プロジェクト: code2u/jsb
 def __init__(self, cfg={}, users=None, plugs=None, *args, **kwargs):
     Irc.__init__(self, cfg, users, plugs, *args, **kwargs)
     if self.state:
         if not self.state.has_key("opchan"):
             self.state["opchan"] = []
     if not self.state.has_key("joinedchannels"):
         self.state["joinedchannels"] = []
コード例 #2
0
ファイル: bot.py プロジェクト: GuillaumeFromage/my-gozerbot
 def __init__(self, cfg):
     Irc.__init__(self, cfg)
     # object used to wait for PRIVMSG
     self.privwait = Privwait()
     # channels where we are op
     if not self.state.has_key('opchan'):
         self.state['opchan'] = []
     self.userchannels = Dol()
     outmonitor.start()
コード例 #3
0
ファイル: bot.py プロジェクト: RetroRodent/my-gozerbot
 def __init__(self, cfg):
     Irc.__init__(self, cfg)
     # object used to wait for PRIVMSG
     self.privwait = Privwait()
     # channels where we are op
     if not self.state.has_key('opchan'):
         self.state['opchan'] = []
     self.userchannels = Dol()
     outmonitor.start()
コード例 #4
0
 def __init__(self, cfg={}, users=None, plugs=None, *args, **kwargs):
     Irc.__init__(self, cfg, users, plugs, *args, **kwargs)
     self.privwait = Privwait()
     if self.state:
         if not self.state.has_key('opchan'): self.state['opchan'] = []
     if not self.state.has_key('joinedchannels'): self.state['joinedchannels'] = []