From 1dc475d846667799550bb769a14c932c0851db03 Mon Sep 17 00:00:00 2001 From: Matt Brockman Date: Sun, 17 Jan 2021 10:54:46 -0800 Subject: [PATCH] inputBot usage --- examples/inputBot.js | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 examples/inputBot.js diff --git a/examples/inputBot.js b/examples/inputBot.js new file mode 100644 index 0000000..8b1b8d8 --- /dev/null +++ b/examples/inputBot.js @@ -0,0 +1,30 @@ + +// Checkout the repo examples to get an idea of other ways you can use scripting +// https://github.com/latitudegames/Scripting/blob/master/examples + +//INPUT MODIFIER +const modifier = (text) => { + state.inputBot = 'DCStatDifficultyBot' +return { text } +} + +// Don't modify this part +modifier(text) + + +// CONTEXT MODIFIEr +const modifier = (text) => { + console.log(info?.inputEvaluation) +return { text } +} + +// Don't modify this part +modifier(text) + + + +/* + AVAILABLE BOTS +['DCStatDifficultyBot'] - Stat, Difficulty +['InputDCattributeBot'] - DC, Attrbute +*/ \ No newline at end of file