Skip to main content

Structured Slack bot framework.

Project description

# Slaccato

> Struectured Slack bot framework

## Installation

$ pip install slaccato

## Example

from slaccato.core import SlackBot, SlackMethod

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

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, response

slack_bot = SlackBot(slack_bot_token='SLACK_BOT_TOKEN',


Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for slaccato, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size slaccato-0.1.1-py3-none-any.whl (6.0 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page