24 lines
512 B
Python
24 lines
512 B
Python
#!/usr/bin/python3
|
|
"""
|
|
commit.py - what the commit
|
|
author: mutantmonkey <mutantmonkey@mutantmonkey.in>
|
|
"""
|
|
|
|
import web
|
|
from tools import GrumbleError
|
|
|
|
|
|
def commit(phenny, input):
|
|
""".commit - Get a What the Commit commit message."""
|
|
|
|
try:
|
|
msg = web.get("http://whatthecommit.com/index.txt")
|
|
except:
|
|
raise GrumbleError("THE INTERNET IS FUCKING BROKEN. Please try again later.")
|
|
|
|
phenny.reply(msg)
|
|
commit.commands = ['commit']
|
|
|
|
if __name__ == '__main__':
|
|
print(__doc__.strip())
|