Skip to content

muriloviana/bottery

 
 

Repository files navigation

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.

About

🔋 A bot framework with batteries included

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%