fixing alignment
This commit is contained in:
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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());
|
||||
}
|
||||
|
||||
@@ -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(" "));
|
||||
|
||||
Reference in New Issue
Block a user