Remove old module mistakenly left in
This commit is contained in:
@@ -26,25 +26,4 @@ module.exports = {
|
||||
//await interaction.reply(err.toString());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = {
|
||||
name: 'slang',
|
||||
description: 'Search Urban Dictionary for a phrase.',
|
||||
example: "slang \"[phrase to search]\"",
|
||||
async execute(message, args) {
|
||||
try {
|
||||
if (args.length < 1) {
|
||||
message.reply(`Please use in !slang [question] format`);
|
||||
return;
|
||||
}
|
||||
var question = encodeURIComponent(args.join(" "));
|
||||
|
||||
var slangData = await libCore.getSlang(question);
|
||||
message.reply(`**Term**: ${decodeURIComponent(question)}\n\n**Answer**: ${slangData.definition}\n\n**Example**: ${slangData.example}`);
|
||||
} catch (e) {
|
||||
message.reply(e.toString());
|
||||
}
|
||||
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user