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.
- package/lib/index.js +3 -3
- 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
|
`;
|