Skip to content

Latest commit

 

History

History
53 lines (40 loc) · 1.33 KB

README.md

File metadata and controls

53 lines (40 loc) · 1.33 KB

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

async def pong(message):
    return "pong!"

async 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.