question those in our ranks

This commit is contained in:
Christine Dodrill 2015-11-15 19:55:21 -08:00
parent ffc9d7ca0d
commit 941047900a
1 changed files with 5 additions and 5 deletions

View File

@ -4,13 +4,13 @@ from util import hook
def skeltal(_):
return "https://www.youtube.com/watch?v=10pqeNBg5d0"
@hook.regex(r"^([hH])(|[?!])$")
@hook.regex(r"^([hH])(|[?!]+)$")
def h(inp, channel=None, conn=None):
suff = ""
if inp.group(2) == "?":
suff = "!"
elif inp.group(2) == "!":
suff = "?"
if inp.group(2).startswith("?"):
suff = inp.group(2).replace("?", "!")
elif inp.group(2).startswith("!"):
suff = inp.group(2).replace("!", "?")
return inp.group(1) + suff
@hook.regex("dQw4w9WgXcQ")