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):
name = args[0]
return f'Hello, {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.0.tar.gz
(5.9 kB
view hashes)
Built Distribution
Close
Hashes for MagiSlack-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9a67a0126f39f80dae4c19a6b0868b8695f611d2ddda46a50b17fa02d9a6d665 |
|
MD5 | 6e5a3756308f1b151efa3ba75d1c1176 |
|
BLAKE2b-256 | 4767c669e7df820ff8a9723db68d73544b6c186663d08bf3558748c67c8a4123 |