From d4a670d107c214183f8063a1e554047a4f4f9c1a Mon Sep 17 00:00:00 2001 From: n1lsqn Date: Mon, 13 Nov 2023 15:47:08 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8A=E9=99=A4=E5=88=86=E8=BF=BD?= =?UTF-8?q?=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/core/index.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index 67eb272..fbcf5b2 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -101,12 +101,16 @@ export default class extends Module { const withSan = titles.some(t => name.endsWith(t)); if (withSan) { - msg.friend.updateName(name.replace("@ai", "")); + msg.friend.updateName( + name.replace("@ai", "") + .replace("@papi.n1l.dev", "") + ); msg.reply(serifs.core.setNameOk(name)); } else { msg.reply(serifs.core.san).then(reply => { this.subscribeReply(msg.userId, reply.id, { name: name.replace("@ai", "") + .replace("@papi.n1l.dev", "") }); }); }