update h regex

This commit is contained in:
Christine Dodrill 2015-11-06 16:41:54 -08:00
parent a0b87c7156
commit fea780997d
1 changed files with 2 additions and 4 deletions

View File

@ -4,11 +4,9 @@ from util import hook
def skeltal(_):
return "https://www.youtube.com/watch?v=10pqeNBg5d0"
@hook.regex(r"(.*)")
@hook.regex(r"^([hH])$")
def h(inp, channel=None, conn=None):
inp = inp.group(1)
if inp == "h":
return "h"
return inp.group(1)
@hook.regex("dQw4w9WgXcQ")
def rickrollProtector(inp):