Skip to content

Wrapper for Slack's RTM API for quick bot implementations

License

Notifications You must be signed in to change notification settings

alexpeits/simpleslackbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

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)

About

Wrapper for Slack's RTM API for quick bot implementations

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages