Added simple ROT13 command

This commit is contained in:
Luke Rogers 2013-10-01 03:19:00 +13:00
parent a45d470363
commit a16b1776f8

View file

@ -35,3 +35,9 @@ def decypher(inp):
passwd = inp.split(" ")[0]
inp = " ".join(inp.split(" ")[1:])
return decode(passwd,inp)
@hook.command
def rot13(inp):
"""rot13 <string> -- Encode <string> with rot13."""
return inp.encode('rot13')