add dynamic beatmap images to presence #12
11
main.js
11
main.js
|
@ -104,13 +104,12 @@ function startOsuStatus() {
|
|||
: " ";
|
||||
if ("beatmap" in currentStatus.player_status.status) {
|
||||
const setId = currentStatus.player_status.status.beatmap.set_id;
|
||||
if (
|
||||
checkImageExists(
|
||||
`https://assets.ppy.sh/beatmaps/${setId}/covers/list@2x.jpg`,
|
||||
)
|
||||
) {
|
||||
largeImageKey =
|
||||
const coverImage =
|
||||
`https://assets.ppy.sh/beatmaps/${setId}/covers/list@2x.jpg`;
|
||||
if (
|
||||
checkImageExists(coverImage)
|
||||
) {
|
||||
largeImageKey = coverImage;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user