mioku-plugin-meme 2.0.0 → 2.1.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.
Files changed (2) hide show
  1. package/package.json +23 -1
  2. package/runtime.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mioku-plugin-meme",
3
- "version": "2.0.0",
3
+ "version": "2.1.1",
4
4
  "description": "基于 meme-generator API 的表情包制作插件",
5
5
  "main": "index.ts",
6
6
  "type": "module",
@@ -16,6 +16,28 @@
16
16
  "config",
17
17
  "ai"
18
18
  ],
19
+ "accessHooks": [
20
+ {
21
+ "id": "meme-菜单",
22
+ "match": "/^\\/meme\\s*菜单/"
23
+ },
24
+ {
25
+ "id": "meme-搜索",
26
+ "match": "/^\\/meme\\s*搜索/"
27
+ },
28
+ {
29
+ "id": "meme-详情",
30
+ "match": "/^\\/meme\\s*详情/"
31
+ },
32
+ {
33
+ "id": "meme-更新",
34
+ "match": "/^\\/meme\\s*更新/"
35
+ },
36
+ {
37
+ "id": "随机表情",
38
+ "match": "/^\\/随机表情/"
39
+ }
40
+ ],
19
41
  "help": {
20
42
  "title": "Meme 表情包",
21
43
  "description": "接入 meme-generator API 的表情包制作插件",
package/runtime.ts CHANGED
@@ -14,11 +14,11 @@ const MEME_PLUGIN_NAME = "meme";
14
14
  export function setMemeRuntimeState(
15
15
  nextState: MemeRuntimeState,
16
16
  ): MemeRuntimeState {
17
- return setPluginRuntimeState<MemeRuntimeState>(MEME_PLUGIN_NAME, nextState);
17
+ return setPluginRuntimeState(MEME_PLUGIN_NAME, nextState) as MemeRuntimeState;
18
18
  }
19
19
 
20
20
  export function getMemeRuntimeState(): MemeRuntimeState {
21
- return getPluginRuntimeState<MemeRuntimeState>(MEME_PLUGIN_NAME);
21
+ return getPluginRuntimeState(MEME_PLUGIN_NAME) as MemeRuntimeState;
22
22
  }
23
23
 
24
24
  export function resetMemeRuntimeState(): void {