pushing food cmd
This commit is contained in:
25
commands/food.js
Normal file
25
commands/food.js
Normal 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());
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -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*
|
||||
`
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user