@atri-bot/plugin-the-cake-is-a-lie 2.0.2 → 2.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +6 -11
- package/dist/index.mjs +1 -1
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import { Plugin } from "@atri-bot/core";
|
|
2
|
+
import { SendMessageSegment } from "node-napcat-ts";
|
|
3
3
|
|
|
4
4
|
//#region src/index.d.ts
|
|
5
|
-
declare const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
uninstall(): void;
|
|
9
|
-
cakeIsALie({
|
|
10
|
-
context
|
|
11
|
-
}: MessageContext<"message">): Promise<void>;
|
|
12
|
-
}, object>;
|
|
5
|
+
declare const TheCakeIsALieRegexp: RegExp;
|
|
6
|
+
declare const messages: SendMessageSegment[];
|
|
7
|
+
declare const plugin: Plugin<object, object>;
|
|
13
8
|
//#endregion
|
|
14
|
-
export {
|
|
9
|
+
export { TheCakeIsALieRegexp, messages, plugin };
|
package/dist/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{Plugin as e}from"@atri-bot/core";import{Structs as t}from"node-napcat-ts";var n=`@atri-bot/plugin-the-cake-is-a-lie`;const r=/^(the cake is a lie|蛋糕是个谎言)$/i,i=[t.text(`You Will Be Baked, And Then There Will Be Cake`),t.music(`163`,2005125394),t.text(`But The Cake Is A Lie`)],a=new e(n).onInstall(({event:e,bot:t})=>{e.regMessageEvent({trigger:r,callback:({context:e})=>{i.forEach((n,r)=>{setTimeout(()=>t.sendMsg(e,[n],{reply:!1,at:!1}),r*1e3)})}})});export{r as TheCakeIsALieRegexp,i as messages,a as plugin};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atri-bot/plugin-the-cake-is-a-lie",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0
|
|
4
|
+
"version": "2.2.0",
|
|
5
5
|
"description": "the cake is a lie plugin for atri framework",
|
|
6
6
|
"author": "huan_kong",
|
|
7
7
|
"license": "MIT",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"typecheck": "tsc --noEmit -p tsconfig.json --composite false"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@atri-bot/core": "^2.
|
|
20
|
-
"node-napcat-ts": "^0.4.
|
|
19
|
+
"@atri-bot/core": "^2.2.0",
|
|
20
|
+
"node-napcat-ts": "^0.4.24",
|
|
21
21
|
"yargs": "^18.0.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|