2015-11-03 01:18:44 +00:00
|
|
|
from util import hook
|
|
|
|
|
|
|
|
@hook.regex("thanks mr skeltal")
|
|
|
|
def skeltal(_):
|
|
|
|
return "https://www.youtube.com/watch?v=10pqeNBg5d0"
|
|
|
|
|
2015-11-11 22:13:12 +00:00
|
|
|
@hook.regex(r"^([hH])(|[?!])$")
|
2015-11-03 01:18:44 +00:00
|
|
|
def h(inp, channel=None, conn=None):
|
2015-11-11 22:14:35 +00:00
|
|
|
suff = ""
|
|
|
|
if inp.group(2) == "?":
|
|
|
|
suff = "!"
|
|
|
|
elif inp.group(2) == "!":
|
|
|
|
suff = "?"
|
|
|
|
return inp.group(1) + suff
|
2015-11-03 01:18:44 +00:00
|
|
|
|
|
|
|
@hook.regex("dQw4w9WgXcQ")
|
|
|
|
def rickrollProtector(inp):
|
|
|
|
return "linked a rick roll, watch out"
|
2015-11-03 01:21:07 +00:00
|
|
|
|
|
|
|
@hook.regex("[kK]-[lL]ine")
|
|
|
|
def kline(inp):
|
|
|
|
return "http://i.imgur.com/FQjQgyB.jpg"
|
2015-11-05 20:43:12 +00:00
|
|
|
|
|
|
|
@hook.command
|
|
|
|
def botsnack(inp):
|
|
|
|
return ":D"
|