Skip to content

Instantly share code, notes, and snippets.

@sh4869
Last active August 29, 2015 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sh4869/8882721 to your computer and use it in GitHub Desktop.
Save sh4869/8882721 to your computer and use it in GitHub Desktop.
つらいという言葉が入ってるtweetをにゃーんにするmikutterプラグイン
# -*- 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