@atri-bot/plugin-the-cake-is-a-lie 1.1.4 → 1.1.6
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/README.md +2 -2
- package/dist/index.d.mts +14 -0
- package/dist/index.mjs +1 -0
- package/package.json +11 -10
- package/dist/index.d.ts +0 -11
- package/dist/index.js +0 -1
package/README.md
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# atri-plugin-
|
|
1
|
+
# atri-plugin-the-cake-is-a-lie
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
蛋糕是个谎言
|
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import * as _atri_bot_core0 from "@atri-bot/core";
|
|
2
|
+
import { MessageContext } from "@atri-bot/core";
|
|
3
|
+
|
|
4
|
+
//#region src/index.d.ts
|
|
5
|
+
declare const TheCakeIsALiePlugin: _atri_bot_core0.definePluginReturnType<object, {
|
|
6
|
+
pluginName: string;
|
|
7
|
+
install(): void;
|
|
8
|
+
uninstall(): void;
|
|
9
|
+
cakeIsALie({
|
|
10
|
+
context
|
|
11
|
+
}: MessageContext<"message">): Promise<void>;
|
|
12
|
+
}>;
|
|
13
|
+
//#endregion
|
|
14
|
+
export { TheCakeIsALiePlugin };
|
package/dist/index.mjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{definePlugin 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=e(()=>({pluginName:n,install(){this.regMessageEvent({trigger:r,callback:this.cakeIsALie.bind(this)})},uninstall(){},async cakeIsALie({context:e}){i.forEach(async(t,n)=>{setTimeout(async()=>{await this.bot.sendMsg(e,[t],{reply:!1,at:!1})},n*1e3)})}}));export{a as TheCakeIsALiePlugin};
|
package/package.json
CHANGED
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atri-bot/plugin-the-cake-is-a-lie",
|
|
3
|
-
"
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "1.1.6",
|
|
4
5
|
"description": "the cake is a lie plugin for atri framework",
|
|
5
6
|
"author": "huan_kong",
|
|
6
7
|
"license": "MIT",
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"types": "./dist/index.d.ts",
|
|
8
|
+
"main": "./dist/index.mjs",
|
|
9
|
+
"types": "./dist/index.d.mts",
|
|
10
10
|
"files": [
|
|
11
11
|
"./dist/**/*"
|
|
12
12
|
],
|
|
13
13
|
"scripts": {
|
|
14
|
-
"build": "
|
|
15
|
-
"clean": "rimraf dist",
|
|
14
|
+
"build": "tsdown",
|
|
16
15
|
"lint": "eslint",
|
|
17
|
-
"lint:fix": "eslint --fix",
|
|
18
16
|
"type-check": "tsc --noEmit -p tsconfig.json --composite false"
|
|
19
17
|
},
|
|
20
18
|
"dependencies": {
|
|
21
|
-
"@atri-bot/core": "^
|
|
22
|
-
"
|
|
23
|
-
"
|
|
19
|
+
"@atri-bot/core": "^2.0.0-beta.8",
|
|
20
|
+
"node-napcat-ts": "^0.4.23",
|
|
21
|
+
"yargs": "^18.0.0"
|
|
22
|
+
},
|
|
23
|
+
"devDependencies": {
|
|
24
|
+
"@types/yargs": "^17.0.35"
|
|
24
25
|
}
|
|
25
26
|
}
|
package/dist/index.d.ts
DELETED
package/dist/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{BasePlugin as l}from"@atri-bot/core";import{Structs as e}from"node-napcat-ts";var s=class extends l{disableAutoLoadConfig=!0;load(){this.regMessageEvent({regexp:/^(the cake is a lie|蛋糕是个谎言)$/i,callback:this.cakeIsALie.bind(this)})}unload(){}messages=[e.text("You Will Be Baked, And Then There Will Be Cake"),e.music("163",2005125394),e.text("But The Cake Is A Lie")];async cakeIsALie({context:a}){this.messages.forEach(async(t,i)=>{setTimeout(async()=>{await this.bot.sendMsg(a,[t],{reply:!1,at:!1})},i*1e3)})}};export{s as Plugin};
|