koishi-plugin-minecraft-search 0.0.5 → 0.0.7

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/lib/index.js +3 -3
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -114,11 +114,11 @@ function apply(ctx, config) {
114
114
  try {
115
115
  const response = await ctx.http.get(apiUrl);
116
116
  if (response.status !== "online") {
117
- return `🔴 ${server.id} ${server.name}
118
- 🌐 ${hostWithPort}
117
+ return `🔴 [${server.id}] ${server.name}
118
+ 🌐 IP: ${hostWithPort}
119
119
  状态: 离线`;
120
120
  }
121
- let message = `🟢 ${server.id} ${server.name}
121
+ let message = `🟢 [${server.id}] ${server.name}
122
122
  `;
123
123
  message += `🌐 IP: ${hostWithPort}
124
124
  `;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-minecraft-search",
3
3
  "description": "使用API查询基础的mc服务器信息",
4
- "version": "0.0.5",
4
+ "version": "0.0.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [