h/plugins/shitposting.py

39 lines
943 B
Python

from util import hook
@hook.regex("thanks mr skeltal")
def skeltal(_):
return "https://www.youtube.com/watch?v=10pqeNBg5d0"
@hook.regex(r"^([hH])([?!]*)$")
def h(inp, channel=None, conn=None):
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(r"^(|press )([xfh]) to pay respects$")
def pay_respects(inp):
return inp.group(2)
@hook.regex("dQw4w9WgXcQ")
def rickrollProtector(inp):
return "linked a rick roll, watch out"
@hook.regex("[kK]-[lL]ine")
def kline(inp):
return "https://i.imgur.com/FQjQgyB.jpg"
@hook.command
def botsnack(inp):
return ":D"
@hook.command
def debian_init(inp):
return "part 1: http://aceattorney.sparklin.org/player.php?trial_id=57684"
@hook.regex("^i kno u r but wat am i >:P$")
def gay(inp):
return "gay"