Skip to content
For a make easy and quick command-respond chat bot.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
MagiSlack
.gitignore
LICENSE
MANIFEST.in
Pipfile
Pipfile.lock
README.md
setup.py

README.md

MagiSlack

MagiSlack is a fast, easy library for make command-respond style chat bot.

Installation

  • pip install MagiSlack

Usage

from MagiSlack.io import MagiIO
from MagiSlack.module import MagiModule

def hello_world_callback(*args, **kwargs):
    name = args[0]
    return f'Hello, {kwargs['display_name']}!'
    
if __name__ == '__main__':
    module = MagiModule.MagiModule('SLACK_API_KEY_HERE')
    io = MagiIO.MagiIO(module)
    io.set_callback_func('hello', hello_world_callback)
    
    io.start()

License

MIT license

You can’t perform that action at this time.