Skip to main content

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


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)

Uploaded Source

Built Distribution

MagiSlack-0.1.1-py3-none-any.whl (5.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page