display user as small image, fix dynamic beatmap images

This commit is contained in:
2024-03-11 18:06:24 +01:00
parent 6bcce04b72
commit 90717ed960
2 changed files with 42 additions and 21 deletions

View File

@@ -56,9 +56,9 @@ module.exports = {
currentStatus.details = details ?? " ";
currentStatus.largeImageKey = largeImageKey ?? "ezppfarm";
},
updateVersion: (osuVersion) => {
currentStatus.smallImageKey = osuVersion ? "osu" : " ";
currentStatus.smallImageText = osuVersion ? `osu! ${osuVersion}` : " ";
updateUser: ({ username, id }) => {
currentStatus.smallImageKey = id ? `https://a.ez-pp.farm/${id}` : " ";
currentStatus.smallImageText = username ? username : " ";
},
update: () => {
if (richPresence && richPresence.user) {