Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

For a make easy and quick command-respond chat bot.

Resources

License

Releases

No releases published

Packages

No packages published

Languages