set buttons to constant array
This commit is contained in:
parent
cc93e24ab6
commit
2df9f533fe
|
@ -7,22 +7,23 @@ let client = undefined;
|
||||||
let lastState = "Idle in Launcher...";
|
let lastState = "Idle in Launcher...";
|
||||||
let presenceEnabled = true;
|
let presenceEnabled = true;
|
||||||
let startDate = new Date();
|
let startDate = new Date();
|
||||||
|
const actionButtons = [
|
||||||
|
{
|
||||||
|
label: "Download the Launcher",
|
||||||
|
url: "https://git.ez-pp.farm/EZPPFarm/EZPPLauncher/releases/latest"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
label: "Join EZPPFarm",
|
||||||
|
url: "https://ez-pp.farm/discord"
|
||||||
|
}
|
||||||
|
]
|
||||||
let lastActivity = {
|
let lastActivity = {
|
||||||
details: " ",
|
details: " ",
|
||||||
state: lastState,
|
state: lastState,
|
||||||
startTimestamp: startDate,
|
startTimestamp: startDate,
|
||||||
largeImageKey: "ezppfarm",
|
largeImageKey: "ezppfarm",
|
||||||
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
||||||
buttons: [
|
buttons: actionButtons,
|
||||||
{
|
|
||||||
label: "Download the Launcher",
|
|
||||||
url: "https://git.ez-pp.farm/EZPPFarm/EZPPLauncher/releases/latest"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Join EZPPFarm",
|
|
||||||
url: "https://ez-pp.farm/discord"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
instance: false,
|
instance: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -53,16 +54,7 @@ module.exports = {
|
||||||
smallImageText: osuVersion ? osuVersion : " ",
|
smallImageText: osuVersion ? osuVersion : " ",
|
||||||
largeImageKey: "ezppfarm",
|
largeImageKey: "ezppfarm",
|
||||||
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
largeImageText: appInfo.appName + " " + appInfo.appVersion,
|
||||||
buttons: [
|
buttons: actionButtons,
|
||||||
{
|
|
||||||
label: "Download the Launcher",
|
|
||||||
url: "https://ez-pp.farm/download"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
label: "Join EZPPFarm",
|
|
||||||
url: "https://discord.com/invite/g8Bh7RaKPg"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
instance: false,
|
instance: false,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user