This commit is contained in:
@ -12,9 +12,9 @@ const commandHandle = {
|
||||
random: randomCook,
|
||||
};
|
||||
|
||||
function randomCook(text, data) {
|
||||
async function randomCook(text, data) {
|
||||
const limit = Number.parseInt(text) > 0 ? Number.parseInt(text) : 5;
|
||||
const recipeList = getRandomRecipe(limit);
|
||||
const recipeList = await getRandomRecipe(limit);
|
||||
const message = genRecipeMessage(recipeList, '给你推荐');
|
||||
|
||||
switch (data.type) {
|
||||
|
Reference in New Issue
Block a user