Skip to main content

Python SDK for kaiheila.cn API

Project description

khl.py

pypi version GitHub last commit

khl server github stars

Python SDK for kookapp.cn(aka kaiheila.cn) API

Minimal Example

from khl import Bot, Message

# init Bot
bot = Bot(token='xxxxxxxxxxxxxxxxxxxxxxxxx')


# register command, send `/hello` in channel to invoke
@bot.command(name='hello')
async def world(msg: Message):
    await msg.reply('world!')


# everything done, go ahead now!
bot.run()
# now invite the bot to a server, and send '/hello' in any channel
# (remember to grant the bot with read & send permissions)

INSTALL

requirement: Python >= 3.6.8

pip install khl.py

Documentation

if your question has not been listed yet, please create a issue or join our talk channel for help

CONTRIBUTING

welcome! we are glad to get help from community hands, and don't be shy to show your code, we can improve it together even if it's not perfect right now

if there is any bug/perf/feature request, we are willing to deal with your issue/pull request!

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

khl.py-0.3.17.tar.gz (41.6 kB view details)

Uploaded Source

Built Distribution

khl.py-0.3.17-py3-none-any.whl (55.4 kB view details)

Uploaded Python 3

File details

Details for the file khl.py-0.3.17.tar.gz.

File metadata

  • Download URL: khl.py-0.3.17.tar.gz
  • Upload date:
  • Size: 41.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for khl.py-0.3.17.tar.gz
Algorithm Hash digest
SHA256 da87736e9f178bab3bb45aede1494bef08328913898b31368d656d51667a5ded
MD5 77817de64a84acc0ccb17ae4ed951910
BLAKE2b-256 8001b7d4e5683746a73e374c74fbd531916ab56c723870b4d9c827f31167e7a1

See more details on using hashes here.

File details

Details for the file khl.py-0.3.17-py3-none-any.whl.

File metadata

  • Download URL: khl.py-0.3.17-py3-none-any.whl
  • Upload date:
  • Size: 55.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.18

File hashes

Hashes for khl.py-0.3.17-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a00d7d994ef4345a830c30c74b33693cac1a390ba0774f7ca497734774de18
MD5 02ea1e76a85d4a124bc9b348f9b1456e
BLAKE2b-256 7d09a769ba7c369318bc0f05bb06b7cf7654de10abe4e9702ae94ce59aa946a6

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