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.

Files for Flask-BearyChat, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe (66.6 kB) File type Windows Installer Python version any Upload date Hashes View
Filename, size Flask-BearyChat-0.2.0.tar.gz (3.1 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page