update h regex
This commit is contained in:
parent
a0b87c7156
commit
fea780997d
|
@ -4,11 +4,9 @@ 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"(.*)")
|
@hook.regex(r"^([hH])$")
|
||||||
def h(inp, channel=None, conn=None):
|
def h(inp, channel=None, conn=None):
|
||||||
inp = inp.group(1)
|
return inp.group(1)
|
||||||
if inp == "h":
|
|
||||||
return "h"
|
|
||||||
|
|
||||||
@hook.regex("dQw4w9WgXcQ")
|
@hook.regex("dQw4w9WgXcQ")
|
||||||
def rickrollProtector(inp):
|
def rickrollProtector(inp):
|
||||||
|
|
Loading…
Reference in New Issue