Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alexpeits/simpleslackbot

Wrapper for Slack's RTM API for quick bot implementations
https://github.com/alexpeits/simpleslackbot

bot slack slack-api slack-bot

Last synced: 11 days ago
JSON representation

Wrapper for Slack's RTM API for quick bot implementations

Awesome Lists containing this project

README

        

# simpleslackbot

Simple wrapper for Slack's RTM API for quick bot implementations

## Installation

```
$ git clone https://github.com/alexpeits/simpleslackbot.git
$ cd simpleslackbot
$ mkvirtualenv slackbot
$ pip install .
```

## Usage

```python
from simpleslackbot.bot import BaseSlackBot

TOKEN = 'your-slack-token'

def handler(events):
for event in events:
print(event)

if __name__ == '__main__':
sc = BaseSlackBot(TOKEN)
sc.initialize()
sc.start(handler)
```