update README.md
This commit is contained in:
33
README.rst
33
README.rst
@@ -2,17 +2,6 @@
|
|||||||
fbchat
|
fbchat
|
||||||
======
|
======
|
||||||
|
|
||||||
.. image:: https://pypip.in/v/fbchat/badge.png?style=flat
|
|
||||||
:target: https://pypi.python.org/pypi/fbchat
|
|
||||||
|
|
||||||
.. image:: https://pypip.in/d/fbchat/badge.png?style=flat
|
|
||||||
:target: https://pypi.python.org/pypi/fbchat
|
|
||||||
|
|
||||||
.. image:: https://pypip.in/status/fbchat/badge.svg?style=flat
|
|
||||||
:target: https://pypi.python.org/pypi/fbchat
|
|
||||||
|
|
||||||
.. image:: https://pypip.in/license/fbchat/badge.svg?style=flat
|
|
||||||
:target: https://pypi.python.org/pypi/fbchat
|
|
||||||
|
|
||||||
Facebook Chat (`Messenger <https://www.messenger.com/>`__) for Python. This project was inspired by `facebook-chat-api <https://github.com/Schmavery/facebook-chat-api>`__.
|
Facebook Chat (`Messenger <https://www.messenger.com/>`__) for Python. This project was inspired by `facebook-chat-api <https://github.com/Schmavery/facebook-chat-api>`__.
|
||||||
|
|
||||||
@@ -22,37 +11,21 @@ Facebook Chat (`Messenger <https://www.messenger.com/>`__) for Python. This proj
|
|||||||
Installation
|
Installation
|
||||||
============
|
============
|
||||||
|
|
||||||
To install fbchat, simply:
|
Simple:
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
$ pip install fbchat
|
$ pip install fbchat
|
||||||
|
|
||||||
Or, you can use:
|
|
||||||
|
|
||||||
.. code-block:: console
|
Example
|
||||||
|
=======
|
||||||
$ pip install fbchat
|
|
||||||
|
|
||||||
Or, you can also install manually:
|
|
||||||
|
|
||||||
.. code-block:: console
|
|
||||||
|
|
||||||
$ git clone git://github.com/carpedm20/fbchat.git
|
|
||||||
$ cd fbchat
|
|
||||||
$ python setup.py install
|
|
||||||
|
|
||||||
|
|
||||||
Echo bot example
|
|
||||||
================
|
|
||||||
|
|
||||||
.. code-block:: console
|
.. code-block:: console
|
||||||
|
|
||||||
import fbchat
|
import fbchat
|
||||||
|
|
||||||
client = fbchat.Client("YOUR_ID", "YOUR_PASSWORD")
|
client = fbchat.Client("YOUR_ID", "YOUR_PASSWORD")
|
||||||
for op in client.listen():
|
|
||||||
client.sendMessage(op.message, op.sender)
|
|
||||||
|
|
||||||
|
|
||||||
Authors
|
Authors
|
||||||
|
Reference in New Issue
Block a user