Last active
December 31, 2015 21:59
-
-
Save MuoTK/8050569 to your computer and use it in GitHub Desktop.
ことりちゃんをホモ扱いする人を即刻リムります。:36のコメントを外すとブロックもできます。:37のコメントを外すとスパム報告もできます。主に @go_is_space 除けです。:32をコメントし:33のコメントを外すとフィルタリングがガチホ向けのフィルタリングができます。 ※尚このコードはこちらを参照してつくられたものです。 https://gist.github.com/pnlybubbles/6139688
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
# encoding: utf-8 | |
require "twitter" | |
require "tweetstream" | |
CONSUMER_KEY = "" | |
CONSUMER_SECRET = "" | |
ACCESS_TOKEN = "" | |
ACCESS_TOKEN_SECRET = "" | |
Twitter.configure { |config| | |
config.consumer_key = CONSUMER_KEY | |
config.consumer_secret = CONSUMER_SECRET | |
} | |
client = Twitter::Client.new( | |
:oauth_token => ACCESS_TOKEN, | |
:oauth_token_secret => ACCESS_TOKEN_SECRET | |
) | |
TweetStream.configure { |config| | |
config.consumer_key = CONSUMER_KEY | |
config.consumer_secret = CONSUMER_SECRET | |
config.oauth_token = ACCESS_TOKEN | |
config.oauth_token_secret = ACCESS_TOKEN_SECRET | |
config.auth_method = :oauth | |
} | |
stream_client = TweetStream::Client.new | |
stream_client.userstream { |status| | |
if status.retweeted_status == nil && status.text =~ /南*ことり(ちゃん)*はホモ/ | |
# if status.retweeted_status == nil && status.text =~ /南*ことり(ちゃん)*は([ホホホ木].*[モモも毛]|ゲイ|人間の[くク][ずズ]|[MmMm][NnNn][MmMm][KkKk][TtTt][RrRr]/ | |
puts "#{status.created_at} #{status.user.screen_name}: #{status.text}" | |
client.unfollow(status.user.id) | |
# client.block(status.user.id) | |
# client.report_spam(status.user.id) | |
end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment