From 7d90262f7b73b9f76a3e97040c028871bf5ef615 Mon Sep 17 00:00:00 2001 From: filesite Date: Tue, 16 Apr 2024 18:26:16 +0800 Subject: [PATCH] show bot name in onboard message --- router_api.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/router_api.mjs b/router_api.mjs index 0189be1..f66d67d 100644 --- a/router_api.mjs +++ b/router_api.mjs @@ -350,7 +350,7 @@ router.post('/onboard/', async (req, res) => { heroUnion.heroOnboard(bot); data.code = 1; - data.message = '欢迎上船,因为有你,联盟将更健壮!'; + data.message = `${bot.name},欢迎上船,因为有你,联盟将更健壮!`; } return res.status(200).json(data);