no message

This commit is contained in:
Luke Rogers 2013-10-01 04:08:13 +13:00
parent d673f8d15c
commit af9f024d63
3 changed files with 9 additions and 8 deletions

View File

@ -1,7 +0,0 @@
from util import hook, text
@hook.command
def munge(inp):
"""munge <text> -- Munges up <text>."""
return text.munge(inp)

View File

@ -1,4 +1,4 @@
from util import hook
from util import hook, text
import hashlib
# basic text tools
@ -61,3 +61,11 @@ def hash(inp):
"""hash <string> -- Returns hashes of <string>."""
return ', '.join(x + ": " + getattr(hashlib, x)(inp).hexdigest()
for x in ['md5', 'sha1', 'sha256'])
# novelty
@hook.command
def munge(inp):
"""munge <text> -- Munges up <text>."""
return text.munge(inp)