Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/alexpeits/simpleslackbot
- Owner: alexpeits
- License: gpl-3.0
- Created: 2017-03-16T22:24:40.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-29T13:47:47.000Z (almost 8 years ago)
- Last Synced: 2024-12-01T11:27:54.372Z (2 months 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 BaseSlackBotTOKEN = 'your-slack-token'
def handler(events):
for event in events:
print(event)if __name__ == '__main__':
sc = BaseSlackBot(TOKEN)
sc.initialize()
sc.start(handler)
```