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());
|
||||
}
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user