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()
Metadata
Release files for llonebot 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| llonebot-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Release files / llonebot-1.0.3-py3-none-any.whl
| Download URL | llonebot-1.0.3-py3-none-any.whl |
|---|---|
| Size | 23.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
61989d3165b5f81cafc742a478855b2039df96495c8be65e0b29ed4dc5d236ac
|
|
BLAKE2b-256 checksum How to use checksums |
9a0feddf8752cacfd30e34238d30ee991958028f77ffc174ebbf3b1f425e3c2a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.10.11
|