koishi-plugin-echoplus 0.0.2

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/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Context, Schema } from 'koishi';
2
+ export declare const name = "echoplus";
3
+ export interface Config {
4
+ }
5
+ export declare const Config: Schema<Config>;
6
+ export declare function apply(ctx: Context, config: Config): void;
package/lib/index.js ADDED
@@ -0,0 +1,44 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
6
+ var __export = (target, all) => {
7
+ for (var name2 in all)
8
+ __defProp(target, name2, { get: all[name2], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var src_exports = {};
22
+ __export(src_exports, {
23
+ Config: () => Config,
24
+ apply: () => apply,
25
+ name: () => name
26
+ });
27
+ module.exports = __toCommonJS(src_exports);
28
+ var import_koishi = require("koishi");
29
+ var name = "echoplus";
30
+ var Config = import_koishi.Schema.object({});
31
+ function apply(ctx, config) {
32
+ ctx.command("echoplus <message>").action(({ session }, message) => {
33
+ for (var i = message.length; i >= 1; i--) {
34
+ session.send(message.substring(0, i));
35
+ }
36
+ });
37
+ }
38
+ __name(apply, "apply");
39
+ // Annotate the CommonJS export names for ESM import in node:
40
+ 0 && (module.exports = {
41
+ Config,
42
+ apply,
43
+ name
44
+ });
package/package.json ADDED
@@ -0,0 +1,28 @@
1
+ {
2
+ "name": "koishi-plugin-echoplus",
3
+ "description": "Echo and repeat with a less letter until none.",
4
+ "version": "0.0.2",
5
+ "contributors": [
6
+ "MoreAmmonia <wangermazibilibili@126.com>"
7
+ ],
8
+ "main": "lib/index.js",
9
+ "typings": "lib/index.d.ts",
10
+ "files": [
11
+ "lib",
12
+ "dist"
13
+ ],
14
+ "license": "MIT",
15
+ "keywords": [
16
+ "chatbot",
17
+ "koishi",
18
+ "plugin"
19
+ ],
20
+ "peerDependencies": {
21
+ "koishi": "^4.18.7"
22
+ },
23
+ "koishi": {
24
+ "description": {
25
+ "zh": "回响形态,持续输出一段逐渐变短的文本。"
26
+ }
27
+ }
28
+ }
package/readme.md ADDED
@@ -0,0 +1,5 @@
1
+ # koishi-plugin-echoplus
2
+
3
+ [![npm](https://img.shields.io/npm/v/koishi-plugin-echoplus?style=flat-square)](https://www.npmjs.com/package/koishi-plugin-echoplus)
4
+
5
+ Echo and repeat with a less letter until none.