/napbots

Primary LanguageJavaScript

Napbots auto-allocation tool

Initial configuration

  • Copy .env.example and rename it to .env
  • Copy compositions.example.js and rename it to compositions.js
  • Edit these files with your details

How it works

Install dependencies

yarn

Launch the script

yarn update-alloc

Logging

The script will automatically log its results in the file specified in the .env file. If you want to temporarily change the path of this file, you can call the script like this:

LOG_FILE_PATH=my-log-file yarn update-alloc

Scheduling with cron

# Launch Napbots auto allocation every 10 minutes
*/10 * * * * cd /path/to/script/folder && yarn update-alloc

# Optionnally, clear the log once a day (or another frequency ^^)
@daily  rm /path/to/log/file