From 0ec7cbb24850fbdb8584d36ce04a8e240d40612d Mon Sep 17 00:00:00 2001 From: Wizzard <25581244+Wizzard@users.noreply.toomuchslop.com> Date: Thu, 13 Jul 2023 13:10:48 -0400 Subject: [PATCH] Updated readme and made clicking the profile optional --- README.md | 3 ++- config.example.json | 6 ++++++ main.js | 2 +- update.bat | 1 + 4 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 config.example.json create mode 100644 update.bat 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