fix url
This commit is contained in:
parent
8898714c62
commit
0c7e66f60f
1 changed files with 4 additions and 2 deletions
6
index.js
6
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,
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue