Please enable JavaScript in your browser! Home Explore Help Sign In Register xena / h SSH HTTPS Copy Need help cloning? Visit Help ! ZIP TAR.GZ Watch 1 Star 0 Fork 0 The shitposting utility bot Branch: master Branches & Tags Branches Tags dg master h plugins printerfact.py printerfact.py 606B Permalink History Raw from util import hook import requests, re, random regex = re.compile(re.escape("cat"), re.IGNORECASE) kittenrex = re.compile(re.escape("kitten"), re.IGNORECASE) preggorex = re.compile(re.escape("pregmant"), re.IGNORECASE) @hook.regex("PHP sadness$") def php_fact(inp): return "http://phpsadness.com/sad/" + str(random.randint(0,53)) @hook.regex("^printer fact$") @hook.command def printerfact(inp, say=None): r = requests.get('https://catfacts-api.appspot.com/api/fa...