Add fmcover command
This commit is contained in:
parent
b63cdcba99
commit
ecd26427a2
2 changed files with 65 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue