mirror of
https://github.com/abocn/TelegramBot.git
synced 2025-03-10 04:39:57 +00:00
Temporary fix for Last.fm status
This commit is contained in:
parent
759477f59c
commit
2d9cb55a87
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user