/bottery

:battery: A bot framework with batteries included

Primary LanguagePythonMIT LicenseMIT

bottery

🔋 A framework for building bots

Build Status Build status PyPI Versions

# quick example of a ping pong bot
from bottery.conf.patterns import DefaultPattern, Pattern

def pong(message):
    return "pong!"

def not_found(message):
    return "Sorry, I didn't understand you :/"

patterns = [
    Pattern('ping', pong),
    DefaultPattern(not_found),
]

The complete example can be seen here.

Usage

Installing

$ pip install bottery

Creating a project

$ bottery startproject librarybot

Running

$ bottery run --debug

Development

Please see our contribution guide.