h2/plugins/plinkett.py

13 lines
236 B
Python
Raw Normal View History

2015-11-29 06:42:25 +00:00
from random import choice
from util import hook
quotes = []
with open("./plugins/data/plinkett.txt", "r") as fin:
quotes = fin.readlines()
@hook.command
@hook.regex("^plinkett fact$")
def plinkett(inp):
return choice(quotes)