mirror of
https://github.com/ctrlcvs/xiaoyao-cvs-plugin.git
synced 2024-12-23 03:20:52 +08:00
新增戳一戳方法
This commit is contained in:
parent
d4e1258e8f
commit
da0009d0d6
@ -6,6 +6,8 @@ import Common from "../components/Common.js";
|
|||||||
import fs from "fs";
|
import fs from "fs";
|
||||||
import format from "date-format";
|
import format from "date-format";
|
||||||
import puppeteer from "puppeteer";
|
import puppeteer from "puppeteer";
|
||||||
|
|
||||||
|
import { MysUser, User } from "../../../lib/components/Models.js";
|
||||||
import common from "../../../lib/common.js";
|
import common from "../../../lib/common.js";
|
||||||
import lodash from "lodash";
|
import lodash from "lodash";
|
||||||
import { getPluginRender } from "../../../lib/render.js"
|
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) {
|
export async function Note_appoint(e) {
|
||||||
let msg = e.msg.replace(/#|井|体力|模板|设置/g, "");
|
let msg = e.msg.replace(/#|井|体力|模板|设置/g, "");
|
||||||
|
8
index.js
8
index.js
@ -10,7 +10,7 @@ import {
|
|||||||
import common from "../../lib/common.js";
|
import common from "../../lib/common.js";
|
||||||
import {
|
import {
|
||||||
Note,DailyNoteTask,
|
Note,DailyNoteTask,
|
||||||
Note_appoint
|
Note_appoint,pokeNote
|
||||||
} from "./apps/Note.js"
|
} from "./apps/Note.js"
|
||||||
import {
|
import {
|
||||||
rule as adminRule,
|
rule as adminRule,
|
||||||
@ -25,7 +25,7 @@ export {
|
|||||||
updateRes,
|
updateRes,
|
||||||
updateMiaoPlugin,
|
updateMiaoPlugin,
|
||||||
versionInfo,
|
versionInfo,
|
||||||
Note_appoint,
|
Note_appoint,pokeNote,
|
||||||
sysCfg,
|
sysCfg,
|
||||||
help,DailyNoteTask,
|
help,DailyNoteTask,
|
||||||
AtlasAlias,
|
AtlasAlias,
|
||||||
@ -53,6 +53,10 @@ let rule = {
|
|||||||
reg: "^#体力模板(设置(.*)|列表)$",
|
reg: "^#体力模板(设置(.*)|列表)$",
|
||||||
describe: "体力模板设置",
|
describe: "体力模板设置",
|
||||||
},
|
},
|
||||||
|
pokeNote: {
|
||||||
|
reg: "#poke#",
|
||||||
|
describe: "体力",
|
||||||
|
},
|
||||||
...adminRule
|
...adminRule
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user