Metadata-Version: 2.1
Name: slaccato
Version: 0.1
Summary: Structured Slack bot framework.
Home-page: https://github.com/peoplefund-tech/slaccato
Author: Dongho Yu
Author-email: n0rr7882@gmail.com
License: MIT
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3.6
Requires-Python: >=3.6
Requires-Dist: certifi (==2018.8.24)
Requires-Dist: chardet (==3.0.4)
Requires-Dist: idna (==2.7)
Requires-Dist: requests (==2.19.1)
Requires-Dist: six (==1.11.0)
Requires-Dist: slackclient (==1.3.0)
Requires-Dist: urllib3 (==1.23)
Requires-Dist: websocket-client (==0.53.0)

# Staccato

> Struectured Slack bot framework

## Installation

```shell
$ pip install staccato
```

## Example

```python
from staccato.core import SlackBot, SlackMethod

# Write a new method
class TestMethod(SlackMethod):
    @property
    def execution_words(self):
        return ['테스트', 'test', 'ping']

    @property
    def help_text(self):
        return '*{}*: You can test me!'.format('/'.join(self.execution_words))

    def response(self, channel, user_command, request_user):
        response = 'Oh, {}! here I am!!!'.format(request_user)
        return channel, respons

slack_bot = SlackBot(slack_bot_token='SLACK_BOT_TOKEN',
                     slack_bot_name='SLACK_BOT_NAME')

slack_bot.add_method(TestMethod)
slack_bot.run()
```


