Example #1
0
 def react(self, user_name, text, attachments):
     if text == 'help':
         self.message += 'Available Commands:\n'
         reactionlist = Reaction.__subclasses__()
         for job in reactionlist:
             self.message += job.__name__
             self.message += ': '
             self.message += job.help
             self.message += '\n'
         return True
     return False
Example #2
0
    def __init__(self, chat):
        self.chat = chat
        self.prefix = '/bot'

        self.reactionlist = Reaction.__subclasses__()
        self.datelist = Date.__subclasses__()