diff --git a/src/inc/trigger/lastfm.mjs b/src/inc/trigger/lastfm.mjs index 2f4f96b..3b59a01 100644 --- a/src/inc/trigger/lastfm.mjs +++ b/src/inc/trigger/lastfm.mjs @@ -22,7 +22,11 @@ export default bot => { track: `${track.artist["#text"]} - ${track.name}`, playing: track["@attr"] ? true : false }; - e.reply( `[b]${info.user}[/b] is listening to [b]${info.track}[/b]` ); + + if(info.playing) + 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 => { console.log(err);