A Flask extension to help interact with BearyChat
Project description
Flask-BearyChat is a Flask Extension to help you work with BearyChat.
Installation
$ pip install flask-bearychat
Usage
from flask import Flask
from flask.ext.bearychat import BearyChat
app = 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()
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
Flask-BearyChat-0.2.0.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b0c699ece22f925b9c6ee9cf1c365a2360761440f0825a23505544e894693ef |
|
MD5 | 4ccac9f8e6779ffd32ebe4e10651eb04 |
|
BLAKE2b-256 | 7bbaa5e420ec24a914bdfa9c5d681d96f057d96e3b01400401d6544dd02f5408 |