Created
May 28, 2010 03:26
-
-
Save legastero/416706 to your computer and use it in GitHub Desktop.
handleMessage Example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def handleMessage(self, msg): | |
| print (msg.keys()) # prints (to, from, type, body, subject, mucroom, mucnick) | |
| print (msg['body']) # prints the message body | |
| msg.reply("Thanks for sending me \"%(body)s\"" % msg).send() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment