Bot class for Facebook Messenger
Project description
# python-messenger
Messenger bot base class for python applications
## Example
```py
from messenger import Bot
class EchoBot(Bot):
def handle_message(self, messaging_event):
self.send_text_message(messaging_event['sender']['id'], messaging_event['message']['text'])
```
## Contributing
### Installation
```bash
virtualenv virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt
```
### Tests
```bash
source virtualenv/bin/activate
pytest messenger
```
Messenger bot base class for python applications
## Example
```py
from messenger import Bot
class EchoBot(Bot):
def handle_message(self, messaging_event):
self.send_text_message(messaging_event['sender']['id'], messaging_event['message']['text'])
```
## Contributing
### Installation
```bash
virtualenv virtualenv
source virtualenv/bin/activate
pip install -r requirements.txt
```
### Tests
```bash
source virtualenv/bin/activate
pytest messenger
```
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
python-messenger-0.1.1.tar.gz
(1.6 kB
view hashes)