A Bot framework to build bots with human manners
Project description
warning: Pengbo is currently in DESIGN
import pengbot
from pengbot.adapters import SlackRobot, Mention
@pengbot.make_robot(SlackRobot)
def mybot(bot):
bot.context = bot.context(
api_token=os.environ.get('SLACK_API_TOKEN', None)
)
@vvbot.hears(Mention)
def talking_parrot(bot, message):
yield from bot.says(':bird: %s' % message['text'] , channel=message['channel'])
if __name__ == '__main__':
mybot()
Installation
$ pip install pengbot
Documentation
TODO
Fuzzy string match for commands
Commands receive message context.
Listen all messages to trigger commands.
Adapters for Slack, XMPP, Twitter.
Message stream filters.
Message stream middlewares.
Stream response messages.
Natural Language Processing?. http://spacy.io
Example ideas
Auto linking for Jira Issues.
Attach user mentions to issues as comments in Jira.
Bots talking to bots.
Voting and Polls.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pengbot-0.1.tar.gz
(1.9 kB
view details)
File details
Details for the file pengbot-0.1.tar.gz
.
File metadata
- Download URL: pengbot-0.1.tar.gz
- Upload date:
- Size: 1.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a64ba02d1347aeabaa35a5e1f2872720362ef2d90cd23a9b4dd4d209d3e19a43 |
|
MD5 | 2dac842a26020b504c353551284be4c4 |
|
BLAKE2b-256 | 22c9e9501af8960132648c0dd83daf73ba5f48f685e50427bd1a5dcb709d2e41 |