Skip to main content

NTQQ llonebot插件 python交互包

Project description

llonebot

适配LiteLoaderQQNT插件

安装

使用以下命令安装项目:

pip install llonebot

使用示例

from onebot import OneBot
from onebot.dtypes import MessageBuilder
from onebot.parameter.arguments import GetGroupID, GetJSON, GetMessageID

onebot = OneBot(host='localhost', port=3001, token='123')

@onebot.listener(filters=[])
async def group(app: OneBot, group_id: int = GetGroupID(), message_id: int = GetMessageID(), data: dict = GetJSON()):
    await app.send_group_msg(group_id, "测试")
    await app.send_group_msg(group_id, MessageBuilder().reply(message_id).text("测试"))


if __name__ == "__main__":
    onebot.run()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

llonebot-1.0.3-py3-none-any.whl (23.4 kB view details)

Uploaded Python 3

File details

Details for the file llonebot-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: llonebot-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 23.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.11

File hashes

Hashes for llonebot-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 61989d3165b5f81cafc742a478855b2039df96495c8be65e0b29ed4dc5d236ac
MD5 e1723ebaee0a8e69d69c0a7dd343d34a
BLAKE2b-256 9a0feddf8752cacfd30e34238d30ee991958028f77ffc174ebbf3b1f425e3c2a

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