question those in our ranks
This commit is contained in:
parent
ffc9d7ca0d
commit
941047900a
|
@ -4,13 +4,13 @@ from util import hook
|
||||||
def skeltal(_):
|
def skeltal(_):
|
||||||
return "https://www.youtube.com/watch?v=10pqeNBg5d0"
|
return "https://www.youtube.com/watch?v=10pqeNBg5d0"
|
||||||
|
|
||||||
@hook.regex(r"^([hH])(|[?!])$")
|
@hook.regex(r"^([hH])(|[?!]+)$")
|
||||||
def h(inp, channel=None, conn=None):
|
def h(inp, channel=None, conn=None):
|
||||||
suff = ""
|
suff = ""
|
||||||
if inp.group(2) == "?":
|
if inp.group(2).startswith("?"):
|
||||||
suff = "!"
|
suff = inp.group(2).replace("?", "!")
|
||||||
elif inp.group(2) == "!":
|
elif inp.group(2).startswith("!"):
|
||||||
suff = "?"
|
suff = inp.group(2).replace("!", "?")
|
||||||
return inp.group(1) + suff
|
return inp.group(1) + suff
|
||||||
|
|
||||||
@hook.regex("dQw4w9WgXcQ")
|
@hook.regex("dQw4w9WgXcQ")
|
||||||
|
|
Loading…
Reference in New Issue