Add compliment generator
This commit is contained in:
parent
7a7e8e21f2
commit
97e69503a6
|
@ -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
|
Loading…
Reference in New Issue