Add compliment generator

This commit is contained in:
Christine Dodrill 2015-11-27 10:58:15 -08:00
parent 7a7e8e21f2
commit 97e69503a6
1 changed files with 9 additions and 0 deletions

9
plugins/compliment.py Normal file
View File

@ -0,0 +1,9 @@
import re
import requests
from util import hook
@hook.command
@hook.regex("^feel good fact$", re.IGNORECASE)
def compliment(inp):
r = requests.get("http://compliment.b303.me/")
return r.text