diff --git a/README.md b/README.md index bab682c..a4c4c08 100644 --- a/README.md +++ b/README.md @@ -9,7 +9,8 @@ type ```npm i``` to install necessary necessary. ## Running -Open the scripts folder and run either start.bat or start.sh depending on OS. +Renamed "config.example.json" to "config.json and fill it out with the correct information. +After that, open the scripts folder and run either start.bat or start.sh depending on OS. ## FAQ diff --git a/config.example.json b/config.example.json new file mode 100644 index 0000000..042afab --- /dev/null +++ b/config.example.json @@ -0,0 +1,6 @@ +{ + "clientId": "1111111111111111111", + "apiKey": 22222222222222222222222222222", + "username": "Retard", + "clickable": "true" +} diff --git a/main.js b/main.js index 70e7a2e..753c3d1 100644 --- a/main.js +++ b/main.js @@ -63,7 +63,7 @@ async function updateStatus() { buttons: [ { label: `${formatNumber(data.scrobbles)} total shits.`, - url: "javascript:void(0);", + url: JSON.parse(config.clickable) ? `https://www.last.fm/user/${config.username}/` : "javascript:void(0);" }, ], }); diff --git a/update.bat b/update.bat new file mode 100644 index 0000000..d0aed61 --- /dev/null +++ b/update.bat @@ -0,0 +1 @@ +git pull