- Copy
.env.example
and rename it to.env
- Copy
compositions.example.js
and rename it tocompositions.js
- Edit these files with your details
yarn
yarn update-alloc
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
# 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