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 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) {
|
if (updateTime < 30) {
|
||||||
console.error("Update time must be above 30! Please change your settings!")
|
console.error("Update time must be above 30! Please change your settings!")
|
||||||
|
@ -75,15 +75,17 @@ function update() {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (json.name == "nothing") {
|
if (json.name == "nothing") {
|
||||||
|
console.log("clear!")
|
||||||
client.clearActivity()
|
client.clearActivity()
|
||||||
updateTime = (process.env.UPDATE_TIME || 45) * 2.5
|
updateTime = (process.env.UPDATE_TIME || 45) * 2.5
|
||||||
} else {
|
} else {
|
||||||
|
console.log(json)
|
||||||
client.setActivity({
|
client.setActivity({
|
||||||
details: `Playing ${json.name}`,
|
details: `Playing ${json.name}`,
|
||||||
state: json.presence,
|
state: json.presence,
|
||||||
startTimestamp: startTime,
|
startTimestamp: startTime,
|
||||||
largeImageText: json.name,
|
largeImageText: json.name,
|
||||||
largeImageKey: json.img || null,
|
largeImageKey: json.img,
|
||||||
smallImageText: json.username,
|
smallImageText: json.username,
|
||||||
smallImageKey: json.pfp || null,
|
smallImageKey: json.pfp || null,
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue