Customiziation options and pathing fixes

This commit is contained in:
Wizzard 2023-07-13 13:40:01 -04:00
parent 370646b5fe
commit 3089bc3a5e
4 changed files with 5 additions and 4 deletions

View File

@ -2,5 +2,6 @@
"clientId": "1111111111111111111", "clientId": "1111111111111111111",
"apiKey": 22222222222222222222222222222", "apiKey": 22222222222222222222222222222",
"username": "Retard", "username": "Retard",
"clickable": "true" "clickable": "true",
"label": "total shits"
} }

View File

@ -62,7 +62,7 @@ async function updateStatus() {
state: `${data.artist} - ${data.album}`, state: `${data.artist} - ${data.album}`,
buttons: [ buttons: [
{ {
label: `${formatNumber(data.scrobbles)} total shits.`, label: `${formatNumber(data.scrobbles)} ${config.label}`,
url: JSON.parse(config.clickable) ? `https://www.last.fm/user/${config.username}/` : "javascript:void(0);" url: JSON.parse(config.clickable) ? `https://www.last.fm/user/${config.username}/` : "javascript:void(0);"
}, },
], ],

View File

@ -1,2 +1,2 @@
#node main.js > /dev/null 2>&1 & #node main.js > /dev/null 2>&1 &
./node_modules/.bin/pm2 start main.js ../node_modules/.bin/pm2 start main.js

View File

@ -1 +1 @@
./node_modules/.bin/pm2.cmd start main.js ../node_modules/.bin/pm2.cmd start main.js