Created
July 24, 2013 14:30
-
-
Save yusuke/6071086 to your computer and use it in GitHub Desktop.
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
public class Main { | |
public static void main(String[] args) { | |
final Twitter twitter = TwitterFactory.getSingleton(); | |
final TwitterStream stream = TwitterStreamFactory.getSingleton(); | |
stream.addListener(new UserStreamAdapter() { | |
public void onStatus(Status status) { | |
if (!status.isRetweet() && satatus.getText().contains("おっぱい")) { | |
try { | |
twitter.createFavorite(status.getId()); | |
} catch (TwitterException ignore) { | |
} | |
} | |
} | |
}); | |
stream.user(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment