Add modules/rot13.py
This commit is contained in:
parent
23b7223fae
commit
1c2504ac98
1 changed files with 9 additions and 0 deletions
9
modules/rot13.py
Normal file
9
modules/rot13.py
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
import codecs
|
||||||
|
from src import ModuleManager, utils
|
||||||
|
|
||||||
|
class Module(ModuleManager.BaseModule):
|
||||||
|
@utils.hook("received.command.rot13")
|
||||||
|
def rot13(self, event):
|
||||||
|
line = event["args"] or event["target"].buffer.get().message
|
||||||
|
event["stdout"].write("%s: %s" % (event["user"].nickname,
|
||||||
|
codecs.encode(line, "rot_13")))
|
Loading…
Reference in a new issue