diff --git a/apps/Note.js b/apps/Note.js index fabedd5..7ed090b 100644 --- a/apps/Note.js +++ b/apps/Note.js @@ -6,6 +6,8 @@ import Common from "../components/Common.js"; import fs from "fs"; import format from "date-format"; import puppeteer from "puppeteer"; + +import { MysUser, User } from "../../../lib/components/Models.js"; import common from "../../../lib/common.js"; import lodash from "lodash"; import { getPluginRender } from "../../../lib/render.js" @@ -349,6 +351,10 @@ export async function DailyNoteTask() { } } +export async function pokeNote(e){ + return await Note(e, getPluginRender("xiaoyao-cvs-plugin")); +} + export async function Note_appoint(e) { let msg = e.msg.replace(/#|井|体力|模板|设置/g, ""); diff --git a/index.js b/index.js index fd6a55b..b343136 100644 --- a/index.js +++ b/index.js @@ -10,7 +10,7 @@ import { import common from "../../lib/common.js"; import { Note,DailyNoteTask, - Note_appoint + Note_appoint,pokeNote } from "./apps/Note.js" import { rule as adminRule, @@ -25,7 +25,7 @@ export { updateRes, updateMiaoPlugin, versionInfo, - Note_appoint, + Note_appoint,pokeNote, sysCfg, help,DailyNoteTask, AtlasAlias, @@ -53,6 +53,10 @@ let rule = { reg: "^#体力模板(设置(.*)|列表)$", describe: "体力模板设置", }, + pokeNote: { + reg: "#poke#", + describe: "体力", + }, ...adminRule };