mirror of
https://github.com/oddluck/limnoria-plugins.git
synced 2025-04-26 21:11:16 -05:00
add rot/unrot
This commit is contained in:
parent
a46a0164fe
commit
156e0c7649
@ -271,4 +271,14 @@ class Fun(callbacks.Plugin):
|
|||||||
irc.reply(reply[excuse])
|
irc.reply(reply[excuse])
|
||||||
chuck = wrap(chuck)
|
chuck = wrap(chuck)
|
||||||
|
|
||||||
|
def rot(self, irc, msg, args, text):
|
||||||
|
"Encode text with ROT13"
|
||||||
|
irc.reply(codecs.encode(text, "rot_13"))
|
||||||
|
rot = wrap(rot, ['text'])
|
||||||
|
|
||||||
|
def unrot(self, irc, msg, args, text):
|
||||||
|
"Decode ROT13 text"
|
||||||
|
irc.reply(codecs.decode(text, "rot_13"))
|
||||||
|
unrot = wrap(unrot, ['text'])
|
||||||
|
|
||||||
Class = Fun
|
Class = Fun
|
||||||
|
Loading…
x
Reference in New Issue
Block a user