[TEST] sp_char error fix 1

This commit is contained in:
homayk228
2025-09-20 21:41:07 +07:00
parent ccc2368c45
commit 9f2eb2d61b

View File

@@ -34,6 +34,7 @@ class NekoSpeakModule(loader.Module):
def neko_speak(self, text):
encrypting_count = 0
sp_char = False
for x in range(1,3):
if("=" in text[-x]):
encrypting_count+=1
@@ -74,7 +75,10 @@ class NekoSpeakModule(loader.Module):
for key, value in replacements.items():
text = text.replace(key, value)
if(text[-1:] in specialchar): sp_char = True
if(text[-1:] in specialchar):
sp_char = True
if random.random() < 0.3: