A matrix bot. I'm redoing catBot_red (a matrix bot based on node red). This is not ready for prime time - see implemented features below.
- Emote reactions to certain phrases
- Message replies
- Updates its profile pic from cat pictures
- Cat facts from cat fact api
- Weather
- Nightscout
-
sugar
- reply with current sugar -
sugar graph
- reply with graph of past 4 hours sugar - automatic blood sugar alerts
-
- Home Assistant 1 [ ] get locations of everyone
- Unifi Protect
- Doorbell / camera integration
- fireApp / yahoo finance
- automatic daily summary
- implement user roles
- Admin dash to add react phrases etc / enable integrations etc (currently through config JSON files)
- Installation script to set up DB and write .env file
- For all files in /config, appending .local to the name will override the defaults
- You can edit these files to add more reactions, e.g.:
- initReactDb.json - is what the emote reactions DB is initialised with
- will update reactDB if changed on each catbot restart
currently only initialises these once, you will need to delete db records to amend an existing entry (it will add new entries)
- Need to install and run mongoDB (e.g. on macos run
brew services run mongodb-community
) - pull repo
gh repo clone mwinterstorm/catBot
- install dependancies
npm install
- run
- deploy with pm2 using local .env:
NODE_ENV=development.local pm2 start -n catbot node -- --no-warnings --experimental-specifier-resolution=node --loader ts-node/esm src/main.ts
- without pm2
node --no-warnings --experimental-specifier-resolution=node --loader ts-node/esm src/main.ts
- dev mode
npm run dev
- deploy with pm2 using local .env:
- Script coming soonish to install / start database / set up local .env
- run
bash update.sh
to update- requires to have been start with PM2 as above