Пример #1
0
Файл: bot.py Проект: 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
Пример #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
Пример #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
Пример #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