From ecd14cf7049ba072b4700bc8f8c39e6ef8f203b8 Mon Sep 17 00:00:00 2001 From: koko210Serve Date: Tue, 27 Jan 2026 19:53:18 +0200 Subject: [PATCH] Able to now address Miku in Cyrillic, Kanji and both Kanas, incl. Japanese honorifics --- bot/utils/core.py | 73 ++++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 66 insertions(+), 7 deletions(-) diff --git a/bot/utils/core.py b/bot/utils/core.py index 647b8f0..2c56777 100644 --- a/bot/utils/core.py +++ b/bot/utils/core.py @@ -40,13 +40,72 @@ async def is_miku_addressed(message) -> bool: except Exception as e: logger.warning(f"Could not fetch referenced message: {e}") - cleaned = message.content.strip() - - return bool(re.search( - r'(?