h/plugins/compliment.py

10 lines
200 B
Python
Raw Permalink Normal View History

2015-11-27 18:58:15 +00:00
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