diff --git a/plugins/utility.py b/plugins/utility.py index 84cb92c..ad9e6df 100644 --- a/plugins/utility.py +++ b/plugins/utility.py @@ -30,7 +30,6 @@ def swapcase(inp): """swapcase -- Swaps the capitalization of .""" return inp.swapcase() - # encoding @hook.command @@ -38,6 +37,16 @@ def rot13(inp): """rot13 -- Encode with rot13.""" return inp.encode('rot13') +@hook.command +def unescape(inp): + """unescape -- Unescapes .""" + return inp.decode('unicode-escape') + +@hook.command +def escape(inp): + """escape -- escapes .""" + return inp.encode('unicode-escape') + # length @hook.command