Temporary fix for Last.fm status

This commit is contained in:
Lucas Gabriel 2024-09-28 14:24:08 -03:00
parent 759477f59c
commit 2d9cb55a87
No known key found for this signature in database
GPG Key ID: D9B075FC6DC93985

View File

@ -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