This commit is contained in:
@ -29,7 +29,6 @@ steps: # 定义管道的执行步骤
|
|||||||
restore: true
|
restore: true
|
||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
- ./nugetpackages
|
|
||||||
|
|
||||||
- name: build-tags
|
- name: build-tags
|
||||||
image: yxs970707/drone-web-tags
|
image: yxs970707/drone-web-tags
|
||||||
@ -71,7 +70,6 @@ steps: # 定义管道的执行步骤
|
|||||||
rebuild: true
|
rebuild: true
|
||||||
mount:
|
mount:
|
||||||
- ./node_modules
|
- ./node_modules
|
||||||
- ./nugetpackages
|
|
||||||
|
|
||||||
---
|
---
|
||||||
kind: pipeline # 定义一个管道
|
kind: pipeline # 定义一个管道
|
||||||
|
@ -13,7 +13,6 @@ const commandHandle = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
async function randomCook(text, data) {
|
async function randomCook(text, data) {
|
||||||
logger(text, data.type, data.sender.id, data.sender.group.id);
|
|
||||||
const limit = Number.parseInt(text) > 0 ? Number.parseInt(text) : 5;
|
const limit = Number.parseInt(text) > 0 ? Number.parseInt(text) : 5;
|
||||||
const recipeList = await getRandomRecipe(limit);
|
const recipeList = await getRandomRecipe(limit);
|
||||||
logger(JSON.stringify(recipeList));
|
logger(JSON.stringify(recipeList));
|
||||||
|
@ -3,7 +3,7 @@ export function genRecipeMessage(recipeList, header, footer) {
|
|||||||
|
|
||||||
for (let recipe of recipeList) {
|
for (let recipe of recipeList) {
|
||||||
textList.push(
|
textList.push(
|
||||||
`吃${recipe.name}\n准备材料:${recipe.stuff}\n使用厨具:${recipe.tools}\nhttps://www.bilibili.com/video/${recipe.bv}`,
|
`吃${recipe['name']}\n准备材料:${recipe.stuff}\n使用厨具:${recipe.tools}\nhttps://www.bilibili.com/video/${recipe.bv}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user