fm command defaults to displaying the current scrobble

This commit is contained in:
SileNce5k 2024-03-04 12:40:33 +01:00
parent 8c02dc5517
commit b861d943a6
No known key found for this signature in database
GPG key ID: 961132EB78C8915F
4 changed files with 70 additions and 0 deletions

View file

@ -1,4 +1,5 @@
const fmlogin = require("../../util/lastfm/fmlogin");
const displayCurrentScrobble = require("../../util/lastfm/displayCurrentScrobble");
module.exports = {
name: 'fm',
@ -16,6 +17,9 @@ module.exports = {
default:
break;
}
if(args.length < 1){
sendText = await displayCurrentScrobble(message.author.id);
}
message.channel.send(sendText);
}
};