Skip to content

Instantly share code, notes, and snippets.

@dannyrandall
Last active January 22, 2021 05:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dannyrandall/48b9fe615371e580818c6fd23e39afc2 to your computer and use it in GitHub Desktop.
Save dannyrandall/48b9fe615371e580818c6fd23e39afc2 to your computer and use it in GitHub Desktop.
ruleset hello_world {
meta {
name "Hello World"
description <<
A first ruleset for the Quickstart
>>
author "Daniel Randall"
shares hello
}
1234
global {
hello = function(obj) {
msg = "Hello " + obj;
msg
}
}
rule hello_world {
select when echo hello
send_directive("say", {"something": "Hello World"})
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment