Esempio n. 1
0
File: bot.py Progetto: code2u/jsb
 def _resume(self, data, botname, reto=None):
     """ resume the bot. """
     if not Irc._resume(self, data, botname, reto):
         return 0
     for channel in self.state["joinedchannels"]:
         self.who(channel)
     return 1
Esempio n. 2
0
    def _resume(self, data, reto):
        """ resume the bot. """

        if not Irc._resume(self, data, reto):
            return 0
        for i in self.state['joinedchannels']:
            periodical.addjob(15, 1, self.who, self, i)
        return 1
Esempio n. 3
0
    def _resume(self, data, reto):

        """ resume the bot. """

        if not Irc._resume(self, data, reto):
            return 0
        for i in self.state['joinedchannels']:
            periodical.addjob(15, 1, self.who, self, i)
        return 1
Esempio n. 4
0
 def _resume(self, data, reto=None):
     """ resume the bot. """
     if not Irc._resume(self, data, reto): return 0
     for channel in self.state['joinedchannels']: self.who(channel)
     return 1