Last active
December 31, 2015 10:39
-
-
Save ssogabe/7974514 to your computer and use it in GitHub Desktop.
Twiiterでgitbucketをふくむつぶやきを検索して、IRCにポストする例
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 MyRouteBuilder extends RouteBuilder { | |
/** | |
* Let's configure the Camel routing rules using Java code... | |
*/ | |
@Override | |
public void configure() { | |
from("twitter://search?keywords=gitbucket&type=polling&delay=30&consumerKey=xxx&consumerSecret=yyy&accessToken=zzz&accessTokenSecret=zzz") | |
.split(body()).to("irc:twitter-bot@192.168.10.50:6667?channels=#gitbucket&keys=gitbucket"); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment