h/plugins/bobross.py

16 lines
268 B
Python
Raw Normal View History

2015-11-11 04:43:14 +00:00
from util import hook
from random import choice
2015-11-11 05:40:10 +00:00
import json
quotes = []
with open("./plugins/data/bobross.json", "r") as fin:
2015-11-15 16:36:35 +00:00
print(fin)
2015-11-11 05:40:10 +00:00
quotes = json.load(fin)
2015-11-11 04:43:14 +00:00
@hook.regex("^[Bb]ob [Rr]oss fact$")
@hook.command
def bobross(inp):
return choice(quotes)