Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe (66.6 kB) Copy SHA256 hash SHA256 Windows Installer any Jan 28, 2016
Flask-BearyChat-0.2.0.tar.gz (3.1 kB) Copy SHA256 hash SHA256 Source None Jan 28, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page