koishi-plugin-test-sm-nextmap 0.0.4 → 0.0.5
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 +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -41,7 +41,7 @@ function apply(ctx, config) {
|
|
|
41
41
|
return "Missing map name";
|
|
42
42
|
}
|
|
43
43
|
ctx.logger.info(`收到服务器通知: [${type}] 地图: ${map}`);
|
|
44
|
-
const message = type === "Test" ? `🎮 [测试]
|
|
44
|
+
const message = type === "Test" ? `🎮 [测试] 服务器连接成功!地图: ${map}` : `更换地图: ${map}`;
|
|
45
45
|
const bot = ctx.bots.find((b) => b.platform === config.targetPlatform);
|
|
46
46
|
if (bot) {
|
|
47
47
|
bot.sendMessage(config.targetChannelId, message).catch((err) => {
|