fix stan speak
This commit is contained in:
+1
-1
@@ -5,4 +5,4 @@ import random
|
|||||||
def speak(chance_of):
|
def speak(chance_of):
|
||||||
number = random.randint(0, chance_of)
|
number = random.randint(0, chance_of)
|
||||||
if number == 0:
|
if number == 0:
|
||||||
return random.choice(i.rstrip() for i in open('Stan.txt', 'r', encoding='utf8') if i)
|
return random.choice([i.rstrip() for i in open('Stan.txt', 'r', encoding='utf8') if i])
|
||||||
|
|||||||
Reference in New Issue
Block a user