Replace <prefix> with prefix in fmhelp
This commit is contained in:
parent
0871b659a1
commit
efcf081e80
1 changed files with 2 additions and 2 deletions
|
@ -5,11 +5,11 @@ module.exports = {
|
||||||
name: 'fm',
|
name: 'fm',
|
||||||
description: 'Last fm commands. See `<prefix>help fm` for more info.',
|
description: 'Last fm commands. See `<prefix>help fm` for more info.',
|
||||||
moreHelp: ["Set username: `<prefix>fm set <lastfm_username>`",],
|
moreHelp: ["Set username: `<prefix>fm set <lastfm_username>`",],
|
||||||
async execute({ message, args }) {
|
async execute({ message, args, prefix }) {
|
||||||
let sendText = "Something went wrong.";
|
let sendText = "Something went wrong.";
|
||||||
switch (args[0]) {
|
switch (args[0]) {
|
||||||
case "help":
|
case "help":
|
||||||
sendText = this.moreHelp.join("\n");
|
sendText = this.moreHelp.join("\n").replace("<prefix>", prefix);
|
||||||
break;
|
break;
|
||||||
case "set":
|
case "set":
|
||||||
sendText = await fmlogin(message.author.id, args[1]);
|
sendText = await fmlogin(message.author.id, args[1]);
|
||||||
|
|
Loading…
Add table
Reference in a new issue