Files
Stan-Ansible/app/stan.py
T
2023-01-03 01:35:52 +03:00

9 lines
219 B
Python

""" Stan quote generator. """
import random
def speak(chance_of):
number = random.randint(0, chance_of)
if number == 0:
return random.choice(i.rstrip() for i in open('Stan.txt', 'r', encoding='utf8'))