A server-side application which listens for bot commands. Currently the bot actions are:
!help
- returns a list of bot commands!shots
- send an API request to a server on a microcontroller and pours a shot
Current versions used: npm 6.13.4
& node.js 12.16.1
Install with nvm
To generate an OAuth token (used for authorising bot to access your Twitch channel), visit here.
Heroku can be used to host the bot. CLI commands can be used to retrieve logs, deploy from local, etc. To install:
brew tap heroku/brew && brew install heroku
To install NPM dependencies:
npm install
To ensure the linting of Typescript files, run:
npm run lint
If using Heroku to host, a git hook within Heroku can be configured so every push to your branch will deploy.
To login to Heroku:
heroku login
To view server logs, run:
heroku logs -a {app-name-here}
First ensure you have the environment variables populated in .env
file before running. These can be retrieved from SSM.
To spin up the local service, run:
make start