tweaked stanzas for easy use

This commit is contained in:
Nathan Fritz
2009-12-10 07:33:59 +00:00
parent 007b04dd30
commit a031dd24a6
6 changed files with 80 additions and 30 deletions

View File

@@ -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