def message_received(self, message):
        """Called when a message is sent to the XMPP bot.

        :param message:
            The message that was sent by the user.
        """
        if message.command:
            handler_name = (message.command,) % '%s_command'
            handler = getattr(self, handler_name, None)
            if handler:
                handler(message)
            else:
                self.unhandled_command(message)
        else:
            self.text_message(message)

        return self.app.response_class('')
dataset/ETHPy150Open moraes/tipfy/tipfy/appengine/xmpp.py/CommandHandlerMixin.message_received/swapped operands of `%`