Created
August 31, 2011 22:56
-
-
Save edorcutt/1184976 to your computer and use it in GitHub Desktop.
KronHooks Event Scheduler Demo
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
ruleset a169x397 { | |
meta { | |
name "KronHooks-Demo" | |
description << | |
KronHooks Event Scheduler Demo | |
>> | |
author "Ed Orcutt, LOBOSLLC" | |
logging on | |
key twitter { | |
"consumer_key" : "YOUR KEY HERE", | |
"consumer_secret" : "YOUR SECRET HERE", | |
"oauth_token" : "YOUR TOKEN HERE", | |
"oauth_token_secret" : "YOUR SECRET HERE" | |
} | |
} | |
// ------------------------------------------------------------------------ | |
rule MyKronHook { | |
select when kronhook kcipvwj | |
pre { | |
hookTime = event:param("hook.time"); | |
msg = "KronHook raised an event at #{hookTime}"; | |
} | |
{ | |
twitter:update(msg); | |
} | |
} | |
// ------------------------------------------------------------------------ | |
// Beyond here there be dragons :) | |
// ------------------------------------------------------------------------ | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment