Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shonenada/flask-bearychat
A Flask extension to help interact with BearyChat
https://github.com/shonenada/flask-bearychat
Last synced: 26 days ago
JSON representation
A Flask extension to help interact with BearyChat
- Host: GitHub
- URL: https://github.com/shonenada/flask-bearychat
- Owner: shonenada
- License: mit
- Created: 2015-07-25T12:56:05.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2016-02-02T06:29:02.000Z (almost 9 years ago)
- Last Synced: 2024-12-08T09:14:14.919Z (26 days ago)
- Language: Python
- Size: 23.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
Flask-BearyChat
===============Flask-BearyChat is a Flask Extension to help you work with `BearyChat `_.
Installation
------------::
$ pip install flask-bearychat
Usage
-----.. code-block:: python
from flask import Flask
from flask.ext.bearychat import BearyChatapp = Flask(__name__)
app.config['BEARYCHAT_TOKEN'] = 'token-from-bearychat-robot'
app.config['BEARYCHAT_CALLBACK'] = '/hook'
bearychat = BearyChat(app)@bearychat.command('hello')
def list(**kwargs):
username = kwargs.get('username')
text = 'Hello, %s' % username
return bearychat.response(text=text)if __name__ == '__main__':
app.run()