Skip to content

Instantly share code, notes, and snippets.

@edorcutt
Created August 31, 2011 22:56
Show Gist options
  • Save edorcutt/1184976 to your computer and use it in GitHub Desktop.
Save edorcutt/1184976 to your computer and use it in GitHub Desktop.
KronHooks Event Scheduler Demo
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