phial-slack 0.10.1

Last updated:

0 purchases

phial-slack 0.10.1 Image
phial-slack 0.10.1 Images
Add to Cart

Description:

phialslack 0.10.1

A simple framework for building slack bots

Phial is a slack bot framework, modelled loosely on
flask.

Table of Contents

Usage
Install
Contribute
Licenses



Usage

Python:
from phial import Phial, command, Response

bot = Phial('---slack token here---')

@bot.command('greet <name>')
def greet(name):
'''Simple command with argument which replies to a message'''
return "Hello {0}".format(name)

bot.run()


Slack:
By default the bot requires a prefix of ! before its commands. This
can be changed in the config.
youruser:
> !greet jim
bot:
> Hello Jim
Features:

Simple command definition
Send messages to slack
Reply to messages in a thread
Reply to messages with a reaction
Upload Files

Examples of commands utilising these features can be found in the
examples folder



Install
$ pip install phial-slack


Contribute
If a feature is missing, or you can improve the code please submit a PR
or raise an Issue


Licenses
phial - MIT © 2019 James Seden Smith
Erlenmeyer Flask by Iconic from the Noun Project - CC BY
3.0 (used in
examples/phial.png)

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.