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