From c5c8fe9967740f76ced48ae97deecef924b2e428 Mon Sep 17 00:00:00 2001 From: homayk228 <43516026+SouceCalve@users.noreply.github.com> Date: Thu, 6 Mar 2025 12:05:07 +0700 Subject: [PATCH] [FIX] random library not imported properly that cause to error in generating output --- NekoSpeak.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/NekoSpeak.py b/NekoSpeak.py index 7ede250..a70b3d4 100644 --- a/NekoSpeak.py +++ b/NekoSpeak.py @@ -1,6 +1,6 @@ from hikkatl.types import Message from .. import loader, utils -from random import randint +import random @loader.tds class NekoSpeakModule(loader.Module): """Модуль для стилизации речи под неко""" @@ -20,7 +20,7 @@ class NekoSpeakModule(loader.Module): for word in words: if word.lower().startswith("н") and len(word) > 1: word = "ня" + word[2:] - word=word.replace("р","р"*randint(2,4)) + word=word.replace("р","р"*random.randint(2,4)) new_words.append(word) text = " ".join(new_words)