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.
Release files for pengbot 0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pengbot-0.1.tar.gz | 1.9 kB | Details |
Release files / pengbot-0.1.tar.gz
| Download URL | pengbot-0.1.tar.gz |
|---|---|
| Size | 1.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a64ba02d1347aeabaa35a5e1f2872720362ef2d90cd23a9b4dd4d209d3e19a43
|
|
BLAKE2b-256 checksum How to use checksums |
22c9e9501af8960132648c0dd83daf73ba5f48f685e50427bd1a5dcb709d2e41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |