Skip to content

python-bot/python-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

This library provides a pure Python interface for the Messenger Bot API such as Facebook, Telegram, Slack. all in one. Feel free to add other messenger support.

In addition to the pure API implementation, this library features a number of high-level classes to make the development of bots easy and straightforward.

Learning by example

The best way to learn and understand this simple package is by example. So here are some examples for you to review this url

Installing

Python 3 required!

This framework assumes you are using Python 3. Get the latest version at Python's download page

Getting a copy of Python Bot's development version

The first step to contributing to Python Bot is to get a copy of the source code. From the command line, use the cd command to navigate to the directory where you'll want your local copy of Python Bot to live.

Download the Python Bot source code repository using the following command:

    $ git clone https://github.com/python-bot/python-bot.git

Now that you have a local copy of Python Bot.

Using virtual environment

Create a new virtualenv by running:

    $ python3 -m venv ~/.virtualenvs/python_bot

The path is where the new environment will be saved on your computer.

On some versions of Ubuntu the above command might fail. Use the virtualenv package instead, first making sure you have pip3:

    $ sudo apt-get install python3-pip
    $ # Prefix the next command with sudo if it gives a permission denied error
    $ pip3 install virtualenv
    $ virtualenv --python=`which python3` ~/.virtualenvs/python_bot

The final step in setting up your virtualenv is to activate it:

    $ source ~/.virtualenvs/python_bot/bin/activate

The installed version of Python Bot is now pointing at your local copy.

Contributing

Contributions of all sizes are welcome:coffee:. You can also help by reporting bugs. It would be very helpful.

License

You may copy, distribute and modify the software provided that modifications are described and licensed for free under LGPL-3. Derivatives works (including modifications or anything statically linked to the library) can only be redistributed under LGPL-3, but applications that use the library don't have to be.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages