Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/riemannulus/magislack
- Owner: riemannulus
- License: mit
- Created: 2019-03-31T14:54:48.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T06:35:13.000Z (almost 2 years ago)
- Last Synced: 2024-09-17T15:58:19.561Z (2 months ago)
- Language: Python
- Size: 13.7 KB
- Stars: 0
- Watchers: 2
- 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