From 59604ceac731411086a40172bd3b37d0b035926d Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Tue, 10 Nov 2015 21:40:10 -0800 Subject: [PATCH] #SaveBob --- plugins/bobross.py | 9 ++++++++- plugins/data/{bobross.py => bobross.json} | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) rename plugins/data/{bobross.py => bobross.json} (99%) diff --git a/plugins/bobross.py b/plugins/bobross.py index 3948dde..5daf36b 100644 --- a/plugins/bobross.py +++ b/plugins/bobross.py @@ -1,6 +1,13 @@ from util import hook from random import choice -from data.bobross import quotes + +import json + +quotes = [] + +with open("./plugins/data/bobross.json", "r") as fin: + print fin + quotes = json.load(fin) @hook.regex("^[Bb]ob [Rr]oss fact$") @hook.command diff --git a/plugins/data/bobross.py b/plugins/data/bobross.json similarity index 99% rename from plugins/data/bobross.py rename to plugins/data/bobross.json index 7584fee..4c9ce22 100644 --- a/plugins/data/bobross.py +++ b/plugins/data/bobross.json @@ -1,4 +1,4 @@ -quotes = [ +[ "That's a crooked tree. We'll send him to Washington.", "The only thing worse than yellow snow is green snow.", "I like to beat the brush.",