diff options
author | Nathan Fritz <fritzy@netflint.net> | 2009-12-10 07:33:59 +0000 |
---|---|---|
committer | Nathan Fritz <fritzy@netflint.net> | 2009-12-10 07:33:59 +0000 |
commit | a031dd24a6c82745b7272d98229ebc69dd5f4811 (patch) | |
tree | 6fa65ae73a2faafe98cf8bfab24f92ed6bcc1ec0 /example.py | |
parent | 007b04dd3086a0b02865c924022db70bbd47445e (diff) | |
download | slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.gz slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.bz2 slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.tar.xz slixmpp-a031dd24a6c82745b7272d98229ebc69dd5f4811.zip |
tweaked stanzas for easy use
Diffstat (limited to 'example.py')
-rw-r--r-- | example.py | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -14,9 +14,8 @@ class Example(sleekxmpp.ClientXMPP): self.getRoster() self.sendPresence() - def message(self, event): - print("******got a message") - + def message(self, msg): + msg.reply("Thanks for sending\n%(body)s" % msg).send() if __name__ == '__main__': #parse command line arguements |