fixing alignment

This commit is contained in:
John Facey
2022-06-26 19:47:38 -05:00
parent 4056bfc567
commit 4a421391f6
3 changed files with 3 additions and 3 deletions

View File

@@ -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());
}

View File

@@ -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());
}

View File

@@ -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(" "));