diff --git a/commands/answer.js b/commands/answer.js index b27de9c..c298999 100644 --- a/commands/answer.js +++ b/commands/answer.js @@ -12,7 +12,7 @@ module.exports = { var question = encodeURIComponent(args.join(" ")); var answerData = await libFlayer.getAnswer(question); - message.reply(`**Question**: ${question} \n\n**Answer**: ${answerData.text}\n\n **Source**: ${answerData.source}`); + message.reply(`**Question**: ${decodeURIComponent(question)}\n\n**Answer**: ${answerData.text}\n\n **Source**: ${answerData.source}`); } catch (err) { message.reply(err.toString()); } diff --git a/commands/slang.js b/commands/slang.js index 59664ef..d897b55 100644 --- a/commands/slang.js +++ b/commands/slang.js @@ -12,7 +12,7 @@ module.exports = { var question = encodeURIComponent(args.join(" ")); var slangData = await libFlayer.getSlang(question); - message.reply(`**Term**: ${question}\n\n **Answer**: ${slangData.definition}\n\n**Example**: ${slangData.example}`); + message.reply(`**Term**: ${decodeURIComponent(question)}\n\n**Answer**: ${slangData.definition}\n\n**Example**: ${slangData.example}`); } catch (e) { message.reply(e.toString()); } diff --git a/commands/stock.js b/commands/stock.js index a1a98a5..f5ed00f 100644 --- a/commands/stock.js +++ b/commands/stock.js @@ -6,7 +6,7 @@ module.exports = { async execute(message, args) { try { if (args.length < 1) { - message.reply(`Please use in !stock [question] format`); + message.reply(`Please use in !stock IBM format`); return; } var question = encodeURIComponent(args.join(" "));