koishi-plugin-sumemo-checker 0.0.2 → 0.0.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/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
- import { Context } from 'koishi';
1
+ import { Context } from "koishi";
2
2
  export declare const name = "sumemo-command";
3
3
  export declare function apply(ctx: Context): void;
package/lib/index.js CHANGED
@@ -26,15 +26,17 @@ __export(src_exports, {
26
26
  module.exports = __toCommonJS(src_exports);
27
27
  var name = "sumemo-command";
28
28
  function apply(ctx) {
29
- ctx.command("sumemo [playerid]", "查询 sumemo 玩家页面").action(async ({ session }, playerid) => {
29
+ ctx.command("sumemo [playerid]", "返回 sumemo 链接").usage(
30
+ "输入玩家ID@区服,生成 sumemo.dev 的用户链接。此步骤不包含检测,信息不全时请前往 https://sumemo.dev/ 自行搜索"
31
+ ).example("sumemo 丝瓜卡夫卡@拂晓之间").action(async ({ session }, playerid) => {
30
32
  if (playerid) {
31
33
  const encoded2 = encodeURIComponent(playerid);
32
34
  return `https://sumemo.dev/member/${encoded2}`;
33
35
  }
34
- await session.send("请发送玩家id");
36
+ await session.send("请发送玩家id@区服");
35
37
  const replied = await session.prompt(3e4);
36
38
  if (!replied) {
37
- return "等待超时(30秒内未收到玩家id)";
39
+ return "等待超时(30秒内未收到回复)";
38
40
  }
39
41
  const encoded = encodeURIComponent(replied);
40
42
  return `https://sumemo.dev/member/${encoded}`;
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "a plugin using for checking ffxiv player's status",
4
4
  "preview": true,
5
5
  "hidden": true,
6
- "version": "0.0.2",
6
+ "version": "0.0.3",
7
7
  "main": "lib/index.js",
8
8
  "typings": "lib/index.d.ts",
9
9
  "files": [