pushing food cmd

This commit is contained in:
John Facey
2022-08-09 00:29:54 -05:00
parent c39c6ad439
commit 0577dadf00
3 changed files with 69 additions and 2 deletions

25
commands/food.js Normal file
View File

@@ -0,0 +1,25 @@
var libFlayer = require("../libFlayer.js");
module.exports = {
name: 'food',
description: 'Food',
async execute(message, args) {
try {
var resultArray = await libFlayer.getFood();
message.reply(`**Retrieving**:
[${resultArray.strMeal} - ${resultArray.strCategory}]
${resultArray.strInstructions}
${resultArray.strSource}
${resultArray.strMealThumb}
`);
} catch (err) {
message.reply(err.toString());
}
}
};

View File

@@ -23,6 +23,7 @@ module.exports = {
**!npm** - Gets NPM info from repository: *!npm axios*
**!alert** - Gets weather alerts for an area: *!alert TX*
**!calc** - Do math: *!calc 2 + 2*
**!food** - Selects a random recipe: *!food*
`
);
}