From 0c7e66f60ff70901055dd2027afc9b3f0f6c341f Mon Sep 17 00:00:00 2001 From: Bingus_Violet Date: Thu, 4 Jan 2024 17:33:53 -0600 Subject: [PATCH] fix url --- index.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index fde2f73..7d79d56 100644 --- a/index.js +++ b/index.js @@ -7,7 +7,7 @@ var clientId = "1176317740512985119" const steamID = process.env.STEAM_ID || prompt("What is your Steam ID?: ") -const thumborURL = "https://thumbor-production-0e82.up.railway.app/unsafe/fit-in/512x512/filters:fill(transparent)/" +const thumborURL = "https://thumbor-production-0e82.up.railway.app/unsafe/fit-in/512x512/filters:fill(transparent):background_color(rgb(50,%2050,%2050))/" if (updateTime < 30) { console.error("Update time must be above 30! Please change your settings!") @@ -75,15 +75,17 @@ function update() { } if (json.name == "nothing") { + console.log("clear!") client.clearActivity() updateTime = (process.env.UPDATE_TIME || 45) * 2.5 } else { + console.log(json) client.setActivity({ details: `Playing ${json.name}`, state: json.presence, startTimestamp: startTime, largeImageText: json.name, - largeImageKey: json.img || null, + largeImageKey: json.img, smallImageText: json.username, smallImageKey: json.pfp || null, });