Esempio n. 1
0
    def quote_command(self, message=None):
        """Called on /quote , will return a random futurama quote.

        Args:
            message: xmpp.Message: The message that was sent by the user.
        """
        message.reply(get_random_quote())
Esempio n. 2
0
 def message_received(self, message):
     sender = bare_jid(message.sender)
     if sender in AUTHORIZED_USERS:
         xmpp_handlers.CommandHandler.message_received(self, message)
     else:
         message.reply(get_random_quote())