This is a very simple controller to use as a starting point. This controller watches for text events and emits a whisper every time it receives an event.
Ensure NodeJS is installed and working (Instructions). Node v10 or higher is recommended.
To install dependencies, run the following command:
npm i
Build will compile an executable and output it to the /build
directory.
Run the following command to build:
npm run build
Deploying will first build, then copy the built files to the correct location for Sidekick to use them. You do not need to run the build command first, deploying will do it automatically.
This is useful for testing with Sidekick.
Run the following command to deploy:
npm run deploy