Example #1
0
File: aim.py Project: gipi/Richie
 def receiveMessage(self, user, multiparts, flags):
     req = Request(message=stripHTML(multiparts[0][0]))
     req.nick = user.name
     req.channel = 'AIM'
     req.private = True
     req.addressed = True
     req.aim = self
     log.info('[AIM] <%s> %s' % (req.nick, req.message))
     self.bot.checkAddressing(req)
     self.bot.process_message(req)
Example #2
0
File: aim.py Project: gipi/Richie
 def receiveMessage(self, user, multiparts, flags):
     req = Request(message=stripHTML(multiparts[0][0]))
     req.nick = user.name
     req.channel = 'AIM'
     req.private = True
     req.addressed = True
     req.aim = self
     log.info('[AIM] <%s> %s' % (req.nick, req.message))
     self.bot.checkAddressing(req)
     self.bot.process_message(req)
Example #3
0
 def on_message(self, user, message, private, addressed, chat=None):
     """Process incoming messages and dispatch to main bot"""
     if user.name == self.bot.botname():
         return
     message = strip_html(message)
     req = Request(message=message)
     req.nick = user.name
     req.channel = u'AIM'
     req.aim = self
     req.private = private
     req.addressed = addressed
     req.chat = chat
     self.bot.log.info(u'[AIM] <%s> %s' % (req.nick, req.message))
     self.bot.check_addressing(req)
     self.bot.process_message(req)
Example #4
0
 def on_message(self, user, message, private, addressed, chat=None):
     """Process incoming messages and dispatch to main bot"""
     if user.name == self.bot.botname():
         return
     message = strip_html(message)
     req = Request(message=message)
     req.nick = user.name
     req.channel = u'AIM'
     req.aim = self
     req.private = private
     req.addressed = addressed
     req.chat = chat
     self.bot.log.info(u'[AIM] <%s> %s' % (req.nick, req.message))
     self.bot.check_addressing(req)
     self.bot.process_message(req)
Example #5
0
    def on_message(self, user, message, private, addressed, chat=None):
        """Process incoming messages and dispatch to main bot"""
        if user.name == self.bot.botname():
            return
        message = stripHTML(message)
        req = Request(message=message)

        # lines that start with ^ will have their output rainbowed
        #if req.message.startswith(u'^'):
        #    req.message = req.message[1:]
        #    req.colorize = True
        #else:
        #    req.colorize = False

        req.nick = user.name
        req.channel = u'AIM'
        req.aim = self
        req.private = private
        req.addressed = addressed
        req.chat = chat
        log.info(u'[AIM] <%s> %s' % (req.nick, req.message))
        self.bot.check_addressing(req)
        self.bot.process_message(req)