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 details)

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

Details for the file MagiSlack-0.1.1.tar.gz.

File metadata

  • Download URL: MagiSlack-0.1.1.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for MagiSlack-0.1.1.tar.gz
Algorithm Hash digest
SHA256 831898f991e18415e404f0962be9c0e264c4ba64a64feeeab34170beee12dc79
MD5 8290ef40b6152e1f91a84df49e77584b
BLAKE2b-256 767db9fae29e567f5e09e12f79a09f7f836c623b1e7fd921a0a721f5120e7742

See more details on using hashes here.

File details

Details for the file MagiSlack-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: MagiSlack-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.2

File hashes

Hashes for MagiSlack-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0e9a2783d85ad8b3b8c4b1c03bddaa9903d3ac3ca3d641de48b581f28f08ea7a
MD5 7d644ec15aaeef3123bfb28a9505bb44
BLAKE2b-256 f3609db0aadf907face325bbb44a4ee5db631262f173301cfc69898d3e9e9285

See more details on using hashes here.

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