How do you create a simple Google Talk Client using the Twisted Words Python library?

前端 未结 4 1719
我寻月下人不归
我寻月下人不归 2020-12-30 03:49

I am interested in making a Google Talk client using Python and would like to use the Twisted libraries Words module. I have looked at the examples, but they don\'t work wi

4条回答
  •  攒了一身酷
    2020-12-30 04:30

    I have written a simple Jabber bot (and thus Google talk bot) using the xmpppy library, which works well. The examples on xmpppy should get you started (specifically bot.py)

    As for something actually implemented in twisted.Words:

    Here is a simple tutorial on creating a bot that prints every received message to the local terminal (and a version that replies with the revere of the received message). To track the online time of various accounts, you would add a callback for "presences" (going online/offline/away etc are "presence changes", in Jabber terminology)

    For a more complete system, pownce-jabber-bot uses twisted.words and wokkel for the jabber interface.

    The powncebot/__init__.py file seems like a good place to start - it's seems pretty simple.

提交回复
热议问题