2
0
mirror of https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git synced 2024-12-23 03:20:52 +08:00

新增戳一戳方法

This commit is contained in:
leiyilu 2022-07-06 14:14:50 +08:00
parent d4e1258e8f
commit da0009d0d6
2 changed files with 12 additions and 2 deletions

View File

@ -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, "");

View File

@ -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
};