From ebde2da41dcf6473a52621f4ac185a78a43dda47 Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Fri, 3 Sep 2021 00:15:46 +0200 Subject: [PATCH] Wiki: Document variables for events Signed-off-by: Knut Ahlers --- wiki/Home.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wiki/Home.md b/wiki/Home.md index d21349f..d7a5cd4 100644 --- a/wiki/Home.md +++ b/wiki/Home.md @@ -166,6 +166,10 @@ Additionally there are some functions available in the templates: - `toUpper ` - Converts the given string to upper-case - `variable [default]` - Returns the variable value or default in case it is empty +For some events special variables are made available: +- `title` - Available in `title_update` - The new stream title +- `category` - Available in `category_update` - The new stream category + ## Command executions Your command will get a JSON object passed through `stdin` you can parse to gain details about the message. It is expected to yield an array of actions on `stdout` and exit with status `0`. If it does not the action will be marked failed. In case you need to output debug output you can use `stderr` which is directly piped to the bots `stderr`.