Replace <prefix> with prefix in fmhelp

This commit is contained in:
SileNce5k 2024-03-07 11:47:57 +01:00
parent 0871b659a1
commit efcf081e80
No known key found for this signature in database
GPG key ID: 961132EB78C8915F

View file

@ -5,11 +5,11 @@ module.exports = {
name: 'fm',
description: 'Last fm commands. See `<prefix>help fm` for more info.',
moreHelp: ["Set username: `<prefix>fm set <lastfm_username>`",],
async execute({ message, args }) {
async execute({ message, args, prefix }) {
let sendText = "Something went wrong.";
switch (args[0]) {
case "help":
sendText = this.moreHelp.join("\n");
sendText = this.moreHelp.join("\n").replace("<prefix>", prefix);
break;
case "set":
sendText = await fmlogin(message.author.id, args[1]);