レイバンのサングラスのspamを検知して表示しないようにするmikutterプラグイン
#-*- 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