Esempio n. 1
0
 def __init__(self,
              personList,
              ruList,
              channel="#CRIStALSigmaLunch",
              port=6667,
              nickname="krobot",
              server="irc.foonetic.net",
              medium="IRC"):
     super(Communication, self).__init__()
     self.medium = medium
     self.ruList = ruList
     self.personList = personList
     if medium == "IRC":
         self.bot = IRCKrobot(channel, nickname, server, port, personList,
                              ruList)
Esempio n. 2
0
 def __init__(self, personList, ruList, channel="#CRIStALSigmaLunch", port=6667, nickname="krobot", server="irc.foonetic.net", medium="IRC"):
     super(Communication, self).__init__()
     self.medium = medium
     self.ruList = ruList
     self.personList = personList
     if medium == "IRC":
         self.bot = IRCKrobot(channel, nickname, server, port, personList, ruList)
Esempio n. 3
0
class Communication(object):
    """
    communication class to chat with actual people. Right now, we use IRC.
    """
    def __init__(self, personList, ruList, channel="#CRIStALSigmaLunch", port=6667, nickname="krobot", server="irc.foonetic.net", medium="IRC"):
        super(Communication, self).__init__()
        self.medium = medium
        self.ruList = ruList
        self.personList = personList
        if medium == "IRC":
            self.bot = IRCKrobot(channel, nickname, server, port, personList, ruList)

    def startBot(self):
        self.bot.start()

    def stopBot(self):
        self.bot.stop()

    def checkWhoIsOnline():
        """
        make a list of persons online and store it in personList
        """
        return 0 # not implemented yet, maybe not necessary

    def printMenus(self):
        """
        make bot print menus
        """
        self.bot.printMenus()

    def fetchPreferences():
       """
       fetch individual preferences for RU and time slot
       """
       return 0
Esempio n. 4
0
class Communication(object):
    """
    communication class to chat with actual people. Right now, we use IRC.
    """
    def __init__(self,
                 personList,
                 ruList,
                 channel="#CRIStALSigmaLunch",
                 port=6667,
                 nickname="krobot",
                 server="irc.foonetic.net",
                 medium="IRC"):
        super(Communication, self).__init__()
        self.medium = medium
        self.ruList = ruList
        self.personList = personList
        if medium == "IRC":
            self.bot = IRCKrobot(channel, nickname, server, port, personList,
                                 ruList)

    def startBot(self):
        self.bot.start()

    def stopBot(self):
        self.bot.stop()

    def checkWhoIsOnline():
        """
        make a list of persons online and store it in personList
        """
        return 0  # not implemented yet, maybe not necessary

    def printMenus(self):
        """
        make bot print menus
        """
        self.bot.printMenus()

    def fetchPreferences():
        """
       fetch individual preferences for RU and time slot
       """
        return 0