diff --git a/commands/quote.py b/commands/quote.py new file mode 100644 index 0000000..9bb1821 --- /dev/null +++ b/commands/quote.py @@ -0,0 +1,16 @@ +import plugin,utils,random,importlib +importlib.reload(utils) + +quotes = utils.get("https://github.com/cwarwicker/discord-WriterBot/raw/master/assets/json/en/quotes.json") +reassure = utils.get("https://github.com/cwarwicker/discord-WriterBot/raw/master/assets/json/en/reassure.json") + +@plugin.command("quotes") +def _quotes(bot,channel,nick,*args): + quote = random.choice(quotes) + bot.say(channel,"{0}: {1!s}. \"{2[quote]}\" /{2[name]}/".format(nick,quotes.index(quote),quote)) + +@plugin.command("reassure") +def _reassure(bot,channel,nick,*args): + quote = random.choice(reassure) + bot.say(channel,"{}: {!s}. {}".format(nick,reassure.index(quote),quote)) +