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: about 2 months ago
JSON representation
Wrapper for Slack's RTM API for quick bot implementations
- Host: GitHub
- URL: https://github.com/alexpeits/simpleslackbot
- Owner: alexpeits
- License: gpl-3.0
- Created: 2017-03-16T22:24:40.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-29T13:47:47.000Z (about 9 years ago)
- Last Synced: 2025-01-29T10:49:43.060Z (over 1 year ago)
- Topics: bot, slack, slack-api, slack-bot
- Language: Python
- Homepage:
- Size: 17.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)
```