From a2c94ec024cb3179bd12ae10b7caba5e61a7ad47 Mon Sep 17 00:00:00 2001 From: homayk228 <43516026+SouceCalve@users.noreply.github.com> Date: Wed, 8 Oct 2025 20:54:22 +0700 Subject: [PATCH] [UPD] Changed word multiplicator MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Добавил дефисы в удлинённые буквы, чтобы звучало характернее. --- NekoSpeak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NekoSpeak.py b/NekoSpeak.py index 367d7ed..b8e78df 100644 --- a/NekoSpeak.py +++ b/NekoSpeak.py @@ -52,8 +52,8 @@ class NekoSpeakModule(loader.Module): if word.lower().startswith("н") and len(word) > 2 and random.random() < 0.05: word = "ня" + word[2:] if random.random() < 0.05: - word = word.replace("р", "р" * random.randint(2,4)) - word = word.replace("r", "r" * random.randint(2,4)) + word = word.replace("р", "р-" * random.randint(2,4)+"р") + word = word.replace("r", "r" * random.randint(2,4)+"r") new_words.append(word) text = " ".join(new_words)