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.

Source Distribution

Flask-BearyChat-0.2.0.tar.gz (3.1 kB view hashes)

Uploaded Source

Built Distribution

Flask-BearyChat-0.2.0.macosx-10.9-x86_64.exe (66.6 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page