Created
May 3, 2015 04:22
-
-
Save penguin2716/fcf82375104b65143d68 to your computer and use it in GitHub Desktop.
レイバンのサングラスのspamを検知して表示しないようにするmikutterプラグイン
This file contains hidden or 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 -*- | |
Plugin.create :disable_rayban_spam do | |
filter_show_filter do |messages| | |
messages.reject! do |message| | |
message.to_s =~ /^@|^RT/ and | |
message.to_s.include? "レイバンのサングラス" and | |
message.to_s =~ /\d+円/ | |
end | |
[messages] | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment