Update lastfm.mjs
This commit is contained in:
parent
b4784387ba
commit
89cda0e25c
@ -22,7 +22,11 @@ export default bot => {
|
|||||||
track: `${track.artist["#text"]} - ${track.name}`,
|
track: `${track.artist["#text"]} - ${track.name}`,
|
||||||
playing: track["@attr"] ? true : false
|
playing: track["@attr"] ? true : false
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if(info.playing)
|
||||||
e.reply( `[b]${info.user}[/b] is listening to [b]${info.track}[/b]` );
|
e.reply( `[b]${info.user}[/b] is listening to [b]${info.track}[/b]` );
|
||||||
|
else
|
||||||
|
e.reply( `[b]${info.user}[/b] is not listening to anything. They last listened to [b]${info.track}[/b]` );
|
||||||
})
|
})
|
||||||
.catch(err => {
|
.catch(err => {
|
||||||
console.log(err);
|
console.log(err);
|
||||||
|
Loading…
Reference in New Issue
Block a user