feat: v1.2.0
Some checks failed
continuous-integration/drone Build is failing

This commit is contained in:
mol
2023-12-13 18:54:37 +08:00
parent d03ffb0cfc
commit 901f127b8a
20 changed files with 824 additions and 63 deletions

View File

@ -0,0 +1,19 @@
export function genRecipeMessage(recipeList, header, footer) {
const textList = [];
for (let recipe of recipeList) {
textList.push(
`${recipe.name}\n准备材料:${recipe.stuff}\n使用厨具:${recipe.tools}\nhttps://www.bilibili.com/video/${recipe.bv}`,
);
}
if (header) {
textList.shift(header);
}
if (footer) {
textList.push(footer);
}
return textList.join('\n----------\n');
}