Based on a gist from @julienarcin.
This node.js app allocates napbots bots based on the current weather condition.
- git
- node.js
- A Napbots account
- Your Napbots user id. Check this link to find out how to retrieve your user id
- Default compositions (which bots to use based on the weather condition) are in
index.js
- Clone this repository:
git clone https://github.com/PierrickI3/napbots - Set your credentials in environment variables. Use
set(Windows) orexport(Mac) to set them. E.g. to set the email environment on a Mac, runexport NAPBOTS_EMAIL=email@domain.comor on Windows, runset NAPBOTS_EMAIL=email@domain.com- Email:
NAPBOTS_EMAIL=email@domain.com - Password :
NAPBOTS_PASSWORD=mypassword - User id:
NAPBOTS_USERID=xxxxxxxxxxxxx(check above on how to get your user id)
- Email:
- Run the app:
npm start - Wait until the app is done with either
Success!,No updates are necessaryor an error message if something bad happened.
- To add another bot in the composition, check this image to find out how to retrieve a bot id
- Edit
index.jsand change thecompositionsobject accordingly
