From 2d9cb55a876475a5876f52a0a5cbeb58aab6fda0 Mon Sep 17 00:00:00 2001 From: Lucas Gabriel Date: Sat, 28 Sep 2024 14:24:08 -0300 Subject: [PATCH] Temporary fix for Last.fm status --- commands/lastfm.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/commands/lastfm.js b/commands/lastfm.js index 200afa8..57b3811 100644 --- a/commands/lastfm.js +++ b/commands/lastfm.js @@ -130,6 +130,10 @@ module.exports = (bot) => { } }); num_plays = response_plays.data.track.userplaycount; + + if (!num_plays || num_plays === undefined) { + num_plays = 0; + }; } catch (err) { console.log(err) const message = Strings.lastFmErr