add dynamic beatmap image to presence

This commit is contained in:
2024-03-11 15:38:20 +01:00
parent da8e237679
commit d56d4875e0
3 changed files with 31 additions and 1 deletions

View File

@@ -47,9 +47,10 @@ module.exports = {
richPresence = null;
}
},
updateStatus: ({ state, details }) => {
updateStatus: ({ state, details, largeImageKey }) => {
currentStatus.state = state ?? " ";
currentStatus.details = details ?? " ";
currentStatus.largeImageKey = largeImageKey ?? "ezppfarm";
},
updateVersion: (osuVersion) => {
currentStatus.smallImageKey = osuVersion ? "osu" : " ";