def on_mention(self, tweet, prefix):
        """
        Handler for responding to mentions at the bot.
        """
        # Rebuild the tweet without any @-mentions, since we have those in prefix.
        text = " ".join([w for w in tweet.text.split(" ") if not w.startswith("@")])

        # Echo the same status right back.
        self.update_status((prefix, text) % "%s %s", reply_to = tweet)

        # Increment the echo counter.
        self.state['echo_counter'] += 1
dataset/ETHPy150Open magsol/pybot/examples/echobot.py/EchoBot.on_mention/swapped operands of `%`