shitposting.py 766 B

12345678910111213141516171819202122232425262728293031
  1. from util import hook
  2. @hook.regex("thanks mr skeltal")
  3. def skeltal(_):
  4. return "https://www.youtube.com/watch?v=10pqeNBg5d0"
  5. @hook.regex(r"^([hH])([?!]*)$")
  6. def h(inp, channel=None, conn=None):
  7. suff = ""
  8. if inp.group(2).startswith("?"):
  9. suff = inp.group(2).replace("?", "!")
  10. elif inp.group(2).startswith("!"):
  11. suff = inp.group(2).replace("!", "?")
  12. return inp.group(1) + suff
  13. @hook.regex("dQw4w9WgXcQ")
  14. def rickrollProtector(inp):
  15. return "linked a rick roll, watch out"
  16. @hook.regex("[kK]-[lL]ine")
  17. def kline(inp):
  18. return "http://i.imgur.com/FQjQgyB.jpg"
  19. @hook.command
  20. def botsnack(inp):
  21. return ":D"
  22. @hook.command
  23. def debian_init(inp):
  24. return "part 1: http://aceattorney.sparklin.org/player.php?trial_id=57684"