koishi-plugin-ciyi 1.2.2 → 1.2.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/lib/render.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import type CanvasService from "@koishijs/canvas";
2
- import { BoardOptions, IntroOptions, RankOptions, StartOptions, WinOptions } from "./view";
2
+ import { BoardOptions, IntroOptions, RankOptions, WinOptions } from "./view";
3
3
  export declare function renderBoardCard(service: CanvasService, opts: BoardOptions): Promise<Buffer>;
4
4
  export declare function renderIntroCard(service: CanvasService, opts: IntroOptions): Promise<Buffer>;
5
- export declare function renderStartCard(service: CanvasService, opts: StartOptions): Promise<Buffer>;
6
5
  export declare function renderWinCard(service: CanvasService, opts: WinOptions): Promise<Buffer>;
7
6
  export declare function renderRankCard(service: CanvasService, opts: RankOptions): Promise<Buffer>;
package/lib/view.d.ts CHANGED
@@ -26,11 +26,6 @@ export interface BoardOptions {
26
26
  attempts: number;
27
27
  tip: string;
28
28
  }
29
- export interface StartOptions {
30
- total: number;
31
- words: number;
32
- left: number;
33
- }
34
29
  export interface IntroOptions {
35
30
  total: number;
36
31
  words: number;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ciyi",
3
3
  "description": "Koishi 的词意(猜词游戏)插件。根据词语的含义相似程度,猜测正确的词语。",
4
- "version": "1.2.2",
4
+ "version": "1.2.3",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -40,16 +40,10 @@
40
40
  "词影",
41
41
  "词意"
42
42
  ],
43
- "dependencies": {
43
+ "devDependencies": {
44
44
  "@koishijs/canvas": "^0.2.0"
45
45
  },
46
46
  "peerDependencies": {
47
- "koishi": "^4.18.9",
48
- "koishi-plugin-puppeteer": "^3.9.0"
49
- },
50
- "peerDependenciesMeta": {
51
- "koishi-plugin-puppeteer": {
52
- "optional": true
53
- }
47
+ "koishi": "^4.18.11"
54
48
  }
55
49
  }
package/readme.md CHANGED
@@ -1,49 +1,26 @@
1
1
  koishi-plugin-ciyi
2
2
  ==================
3
3
 
4
- [<img alt="github" src="https://img.shields.io/badge/github-araea/ci_yi-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-ciyi)
4
+ [<img alt="github" src="https://img.shields.io/badge/github-araea/koishi__plugin__ciyi-8da0cb?style=for-the-badge&labelColor=555555&logo=github" height="20">](https://github.com/araea/koishi-plugin-ciyi)
5
5
  [<img alt="npm" src="https://img.shields.io/npm/v/koishi-plugin-ciyi.svg?style=for-the-badge&color=fc8d62&logo=npm" height="20">](https://www.npmjs.com/package/koishi-plugin-ciyi)
6
6
 
7
- Koishi 的词意(猜词游戏)插件。根据词语的含义相似程度,猜测正确的词语。
8
-
9
- 每天藏起一个两字词。你报词,它回你这个词与答案的语义排名 —— 名次越小越近,`#1`
10
- 就是答案本身;同时给出它在相似度榜单上的左右邻居,各遮去一字。
7
+ Koishi 的词意猜词插件。
11
8
 
12
9
  ## 使用
13
10
 
14
- 1. 设置指令别名(推荐把 `ciyi.猜` 设为 `猜`)。
15
- 2. 发送 `ciyi` 查看图文玩法说明。
11
+ 设置指令别名后,发送 `ciyi` 查看玩法。每日藏一个两字词,第一次猜测会自动开题。
12
+
13
+ ## 指令
16
14
 
17
- | 指令 | 作用 |
15
+ | 指令 | 说明 |
18
16
  | --- | --- |
19
17
  | `ciyi` | 玩法说明 |
20
- | `ciyi.每日挑战` | 开今天的题 |
21
- | `ciyi.猜 山水` | 报一个两字词 |
22
- | `ciyi.排行榜` | 累计猜中次数榜 |
23
-
24
- ## 图片
25
-
26
- 启用 Koishi Canvas 服务后渲染「墨与纸」风格卡片:宣纸底、古籍双线框、
27
- 朱砂印,每个字住在自己的田字格里,隐去的字只留空格与虚线中缝。猜测按名次由近及远
28
- 排列,配六档亲疏色阶 —— 咫尺 / 毗邻 / 相近 / 沾边 / 疏远 / 天涯。
29
-
30
- 插件复用 Koishi 的通用 `canvas` 服务。`koishi-plugin-puppeteer` 已经自带服务实现,原本启用了
31
- Puppeteer 的用户无需再安装 `@napi-rs/canvas` 或其他大型原生依赖。
32
-
33
- 没有 Canvas 服务、渲染失败或在配置里关掉「渲染图片」时,自动回退为排版等价的文本,
34
- 玩法不受影响。
35
-
36
- 如果需要图片但尚未启用服务,可安装并启用 `koishi-plugin-puppeteer`;它是可选依赖,不会随
37
- 词意插件强制下载。只使用文本玩法时无需安装任何绘图后端。
38
-
39
- ## 致谢
40
-
41
- - [Koishi](https://koishi.chat/)
42
- - [词影](https://cy.surprising.studio/)
18
+ | `ciyi.猜 <词>` | 开始今日游戏并提交猜测 |
19
+ | `ciyi.排行榜` | 猜中次数榜 |
43
20
 
44
21
  ## QQ 群
45
22
 
46
- - 956758505
23
+ 956758505
47
24
 
48
25
  <br>
49
26