From dae830ba6a0f1197f31087b3668f5448088b3699 Mon Sep 17 00:00:00 2001 From: kimpure Date: Sat, 30 May 2026 09:05:12 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20fix=20'=EC=95=84=EC=96=B4=EC=95=84?= =?UTF-8?q?=EC=96=B4=EC=95=84=EC=96=B4'=20repeat=20produce=20strange=20sou?= =?UTF-8?q?nd?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/bot/index.ts | 2 +- packages/utils/saferKorean.ts | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/bot/index.ts b/packages/bot/index.ts index d7699b8..61debef 100644 --- a/packages/bot/index.ts +++ b/packages/bot/index.ts @@ -26,7 +26,7 @@ export class DiscordBot { public async registerCommands(): Promise { try { if (!this.client.isReady()) { - await this.client.once(Events.ClientReady, () => {}); + this.client.once(Events.ClientReady, () => {}); } const commandsCachePath = join(cwd(), "cache", "commands"); diff --git a/packages/utils/saferKorean.ts b/packages/utils/saferKorean.ts index 533291e..7e5fb9c 100644 --- a/packages/utils/saferKorean.ts +++ b/packages/utils/saferKorean.ts @@ -20,7 +20,9 @@ export function processUnsounds(input: string): string { // Process korean letter, choseong shortens export function processKorean(input: string): string { - input = input.replace(/[아ㅏ]{3,}/g, "아아아"); + input = input.replace(/[아ㅏ어ㅓ]{3,}/g, (content: string) => + content.substring(0, 3), + ); return input.replace(/[ㄱ-ㅎㄲㄸㅃㅆㅉ]+/g, (i) => i