From 180849c23ca880523ed169c2095956b40a62dace Mon Sep 17 00:00:00 2001 From: n1lsqn Date: Tue, 14 Nov 2023 15:41:01 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20console.log=E3=81=AE=E5=89=8A=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/core/index.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/modules/core/index.ts b/src/modules/core/index.ts index fbcf5b2..586e312 100644 --- a/src/modules/core/index.ts +++ b/src/modules/core/index.ts @@ -63,37 +63,31 @@ export default class extends Module { @autobind private setName(msg: Message): boolean { if (!msg.text) { - console.error("Message text is empty or undefined."); return false; } if (!msg.text.includes('って呼んで')) { - console.error("Message text does not include 'って呼んで'."); - return false; + return false; } if (msg.text.startsWith('って呼んで')) { - console.error("Message text starts with 'って呼んで'."); return false; } const matchResult = msg.text.match(/^(.+?)って呼んで/); if (!matchResult) { - console.error("Name not found in the message text."); return false; } const name = matchResult[1]; if (name.length > 30) { - console.error("Name length exceeds 10 characters."); msg.reply(serifs.core.tooLong); return true; } if (safeForInterpolate(name)) { - console.error("Invalid name."); msg.reply(serifs.core.invalidName); return true; }