Skip to content

estemanito/napbots

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Napbots Allocation

Based on a gist from @julienarcin.

This node.js app allocates napbots bots based on the current weather condition.

Screenshot

Requirements

  • 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

Usage

  • Clone this repository: git clone https://github.com/PierrickI3/napbots
  • Set your credentials in environment variables. Use set (Windows) or export (Mac) to set them. E.g. to set the email environment on a Mac, run export NAPBOTS_EMAIL=email@domain.com or on Windows, run set 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)
  • Run the app: npm start
  • Wait until the app is done with either Success!, No updates are necessary or an error message if something bad happened.

Adding more bots

  • To add another bot in the composition, check this image to find out how to retrieve a bot id
  • Edit index.js and change the compositions object accordingly

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • JavaScript 100.0%