diff --git a/contributed/AIDECLib/input-modifier.js b/contributed/AIDECLib/input-modifier.js new file mode 100644 index 0000000..ec4dbdb --- /dev/null +++ b/contributed/AIDECLib/input-modifier.js @@ -0,0 +1,20 @@ + +const modifier = (text) => { + // Define the persisting stop attribute of state upon starting the adventure + if (state.stopped == undefined) { + state.stopped = false; + } + + // Define the command array + state.commands = []; + + // Add addCommand calls here + + // Parse any commands present in text + modifiedText = parseCommand(text); + + return { text: modifiedText } +} + +// Don't modify this part +modifier(text)