Add fmcover command

This commit is contained in:
SileNce5k 2024-04-08 13:33:25 +02:00
parent b63cdcba99
commit ecd26427a2
No known key found for this signature in database
GPG key ID: 961132EB78C8915F
2 changed files with 65 additions and 0 deletions

View file

@ -1,5 +1,6 @@
const fmlogin = require("../../util/lastfm/fmlogin");
const getCurrentScrobble = require("../../util/lastfm/getCurrentScrobble");
const getCurrentCover = require("../../util/lastfm/getCurrentCover");
const getTopTracks = require("../../util/lastfm/getTopTracks");
const help = require("../info/help");
const parseMention = require("../../util/parseMention");
@ -26,6 +27,9 @@ module.exports = {
args.shift();
sendText.text = await getTopTracks(message.author.id, args);
break;
case "cover":
sendText = await getCurrentCover(message.author.id, message.guild);
sendText.embed.get
default:
sendText.text = `${args[0]} is not a valid subcommand.\nSee \`${prefix}help fm\` for more info.`;
break;