@atri-bot/plugin-the-cake-is-a-lie 1.1.6 → 2.0.1

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 CHANGED
@@ -2,13 +2,13 @@ import * as _atri_bot_core0 from "@atri-bot/core";
2
2
  import { MessageContext } from "@atri-bot/core";
3
3
 
4
4
  //#region src/index.d.ts
5
- declare const TheCakeIsALiePlugin: _atri_bot_core0.definePluginReturnType<object, {
5
+ declare const Plugin: _atri_bot_core0.definePluginReturnType<{
6
6
  pluginName: string;
7
7
  install(): void;
8
8
  uninstall(): void;
9
9
  cakeIsALie({
10
10
  context
11
11
  }: MessageContext<"message">): Promise<void>;
12
- }>;
12
+ }, object>;
13
13
  //#endregion
14
- export { TheCakeIsALiePlugin };
14
+ export { Plugin };
package/dist/index.mjs CHANGED
@@ -1 +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};
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(()=>this.bot.sendMsg(e,[t],{reply:!1,at:!1}),n*1e3)})}}));export{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": "1.1.6",
4
+ "version": "2.0.1",
5
5
  "description": "the cake is a lie plugin for atri framework",
6
6
  "author": "huan_kong",
7
7
  "license": "MIT",
@@ -13,10 +13,10 @@
13
13
  "scripts": {
14
14
  "build": "tsdown",
15
15
  "lint": "eslint",
16
- "type-check": "tsc --noEmit -p tsconfig.json --composite false"
16
+ "typecheck": "tsc --noEmit -p tsconfig.json --composite false"
17
17
  },
18
18
  "dependencies": {
19
- "@atri-bot/core": "^2.0.0-beta.8",
19
+ "@atri-bot/core": "^2.0.7",
20
20
  "node-napcat-ts": "^0.4.23",
21
21
  "yargs": "^18.0.0"
22
22
  },