11 lines
238 B
Python
11 lines
238 B
Python
""" Stan quote generator. """
|
|
import random
|
|
|
|
quotes = [i.rstrip() for i in open('Stan.txt', 'r', encoding='utf8')]
|
|
|
|
|
|
def speak(chance_of):
|
|
number = random.randint(0, chance_of)
|
|
if number == 0:
|
|
return random.choice(quotes)
|