guildinfo: cleanup associated games

This commit is contained in:
Cynthia Foxwell 2025-06-21 10:46:55 -06:00
parent ef3495bff1
commit e582a7472a
Signed by: Cynosphere
SSH key fingerprint: SHA256:H3SM8ufP/uxqLwKSH7xY89TDnbR9uOHzjLoBr0tlajk

View file

@ -88,15 +88,7 @@ guildinfo.callback = async function (msg, line, args, {nolocal, debug}) {
game = await hf.bot.requestHandler.request("GET", APIEndpoints.APPLICATION_RPC(id), false);
}
let out = `${game.name} (\`${id}\`)`;
if (profile.game_activity[id]?.activity_level > 1) {
out = `:fire: ${out}`;
} else {
out = `${Icons.blank} ${out}`;
}
return out;
return `${game.name}${profile.game_activity[id]?.activity_level > 1 ? " :fire:" : ""}\n-# \u3000${id}`;
})
);