summaryrefslogtreecommitdiff
path: root/example.py
diff options
context:
space:
mode:
Diffstat (limited to 'example.py')
-rw-r--r--example.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/example.py b/example.py
index b42bc40e..bba31a8f 100644
--- a/example.py
+++ b/example.py
@@ -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