@atri-bot/plugin-the-cake-is-a-lie 1.1.1 → 1.1.3

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.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { BasePlugin } from '@atri-bot/core';
2
2
 
3
3
  declare class Plugin extends BasePlugin {
4
- pluginName: string;
5
4
  disableAutoLoadConfig: boolean;
6
5
  load(): void;
7
6
  unload(): void;
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{BasePlugin as l}from"@atri-bot/core";import{Structs as e}from"node-napcat-ts";var s=class extends l{pluginName="the_cake_is_a_lie";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};
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};
package/package.json CHANGED
@@ -1,21 +1,26 @@
1
- {
2
- "name": "@atri-bot/plugin-the-cake-is-a-lie",
3
- "version": "1.1.1",
4
- "description": "the cake is a lie plugin for atri framework",
5
- "author": "huan_kong",
6
- "license": "MIT",
7
- "type": "module",
8
- "scripts": {
9
- "build": "pnpm run type-check && pnpm run lint && tsup",
10
- "clean": "rimraf dist",
11
- "lint": "eslint",
12
- "lint:fix": "eslint --fix",
13
- "type-check": "tsc --noEmit -p tsconfig.json --composite false"
14
- },
15
- "dependencies": {
16
- "@atri-bot/core": "^1.1.4",
17
- "@huan_kong/logger": "^1.0.6",
18
- "commander": "^14.0.0",
19
- "node-napcat-ts": "^0.4.19"
20
- }
21
- }
1
+ {
2
+ "name": "@atri-bot/plugin-the-cake-is-a-lie",
3
+ "version": "1.1.3",
4
+ "description": "the cake is a lie plugin for atri framework",
5
+ "author": "huan_kong",
6
+ "license": "MIT",
7
+ "type": "module",
8
+ "main": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "files": [
11
+ "./dist/**/*"
12
+ ],
13
+ "scripts": {
14
+ "build": "pnpm run type-check && pnpm run lint && tsup",
15
+ "clean": "rimraf dist",
16
+ "lint": "eslint",
17
+ "lint:fix": "eslint --fix",
18
+ "type-check": "tsc --noEmit -p tsconfig.json --composite false"
19
+ },
20
+ "dependencies": {
21
+ "@atri-bot/core": "^1.1.9",
22
+ "@huan_kong/logger": "^1.0.6",
23
+ "commander": "^14.0.0",
24
+ "node-napcat-ts": "^0.4.19"
25
+ }
26
+ }
package/CHANGELOG.md DELETED
@@ -1,7 +0,0 @@
1
- # 更新日志
2
-
3
- ## 2025
4
-
5
- ### 09-06 v1.1.0
6
-
7
- - [+] 初始版本
package/src/index.ts DELETED
@@ -1,30 +0,0 @@
1
- import { BasePlugin, type MessageCallback } from '@atri-bot/core'
2
- import { Structs, type SendMessageSegment } from 'node-napcat-ts'
3
-
4
- export class Plugin extends BasePlugin {
5
- pluginName = 'the_cake_is_a_lie'
6
- disableAutoLoadConfig = true
7
-
8
- load() {
9
- this.regMessageEvent({
10
- regexp: /^(the cake is a lie|蛋糕是个谎言)$/i,
11
- callback: this.cakeIsALie.bind(this),
12
- })
13
- }
14
-
15
- unload() {}
16
-
17
- private messages: SendMessageSegment[] = [
18
- Structs.text('You Will Be Baked, And Then There Will Be Cake'),
19
- Structs.music('163', 2005125394),
20
- Structs.text('But The Cake Is A Lie'),
21
- ]
22
-
23
- private async cakeIsALie({ context }: MessageCallback) {
24
- this.messages.forEach(async (message, index) => {
25
- setTimeout(async () => {
26
- await this.bot.sendMsg(context, [message], { reply: false, at: false })
27
- }, index * 1000)
28
- })
29
- }
30
- }
package/tsconfig.json DELETED
@@ -1,7 +0,0 @@
1
- {
2
- "extends": "../../tsconfig.base.json",
3
- "compilerOptions": {
4
- "outDir": "./dist"
5
- },
6
- "include": ["./src", "./tsup.config.ts"]
7
- }
package/tsup.config.ts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from 'tsup'
2
-
3
- export default defineConfig({
4
- entry: ['./src/index.ts', './src/plugins/*.ts'],
5
- external: ['./src/utils.ts'],
6
- outDir: 'dist',
7
- format: 'esm',
8
- dts: true,
9
- clean: true,
10
- minify: true,
11
- })