import sciencedirect import doi def fetchpaper(phenny, input): url = input.group(2) if url.lower().startswith('doi:'): url = doi.doi( url[4:] ) phenny.say("Fetching %s..." % url) fetchpaper.commands = ['paper'];