Add old link alert to title grabber

This commit is contained in:
Andrei
2012-06-27 19:33:09 -04:00
committed by mutantmonkey
parent 78441d5fbf
commit 52aaa0778a
2 changed files with 26 additions and 7 deletions

View File

@@ -79,5 +79,17 @@ def posted(phenny, input):
posted.rule = (['posted'], r'(.*)')
def postedlink(url):
""" helper method for gettitle() """
try:
req = web.post("http://linx.li/vtluugpostedurl", {'url': url})
except:
req = ""
return req
postedlink.channels = ['#vtluug']
if __name__ == '__main__':
print(__doc__.strip())
print(__doc__.strip())