Last active
August 29, 2015 13:56
-
-
Save sh4869/8882721 to your computer and use it in GitHub Desktop.
つらいという言葉が入ってるtweetをにゃーんにするmikutterプラグイン
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
#参考にさせていただいたプラグインです | |
# | |
#@firstspring1845のpostをすべて’おしりターボ’に変えてしまうプラグイン(https://gist.github.com/rinx/8822332) | |
#〄が含まれるツイートを検出したら即座に空リプするmikutterプラグイン(https://gist.github.com/penguin2716/4518448) | |
# | |
class Message | |
def self.appear(message) | |
if message.message.to_s =~ /つらい/ | |
message[:message] = "にゃーん" | |
@@appear_queue.push(message) | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment