https://github.com/riemannulus/magislack
For a make easy and quick command-respond chat bot.
https://github.com/riemannulus/magislack
Last synced: 4 months ago
JSON representation
For a make easy and quick command-respond chat bot.
- Host: GitHub
- URL: https://github.com/riemannulus/magislack
- Owner: riemannulus
- License: mit
- Created: 2019-03-31T14:54:48.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:35:13.000Z (over 2 years ago)
- Last Synced: 2025-03-10T23:11:10.303Z (4 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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 MagiModuledef 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