For a make easy and quick command-respond chat bot
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
MagiSlack-0.1.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for MagiSlack-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e9a2783d85ad8b3b8c4b1c03bddaa9903d3ac3ca3d641de48b581f28f08ea7a |
|
MD5 | 7d644ec15aaeef3123bfb28a9505bb44 |
|
BLAKE2b-256 | f3609db0aadf907face325bbb44a4ee5db631262f173301cfc69898d3e9e9285 |