Temporary fix for Last.fm status
This commit is contained in:
parent
759477f59c
commit
2d9cb55a87
1 changed files with 4 additions and 0 deletions
|
@ -130,6 +130,10 @@ module.exports = (bot) => {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
num_plays = response_plays.data.track.userplaycount;
|
num_plays = response_plays.data.track.userplaycount;
|
||||||
|
|
||||||
|
if (!num_plays || num_plays === undefined) {
|
||||||
|
num_plays = 0;
|
||||||
|
};
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
console.log(err)
|
console.log(err)
|
||||||
const message = Strings.lastFmErr
|
const message = Strings.lastFmErr
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue