Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/riemannulus/magislack

For a make easy and quick command-respond chat bot.
https://github.com/riemannulus/magislack

Last synced: about 1 month ago
JSON representation

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

Awesome Lists containing this project

README

        

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

## Installation
- pip install MagiSlack

## Usage
```python
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