Template plugin project
Project description
📖 介绍
使用 Bot 指令来直接调用 Bot 的 API 吧!
本插件理论上兼容任何适配器~
💿 安装
以下提到的方法 任选其一 即可
[推荐] 使用 nb-cli 安装
在 nonebot2 项目的根目录下打开命令行, 输入以下指令即可安装nb plugin install nonebot-plugin-callapi
使用包管理器安装
在 nonebot2 项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install nonebot-plugin-callapi
pdm
pdm add nonebot-plugin-callapi
poetry
poetry add nonebot-plugin-callapi
conda
conda install nonebot-plugin-callapi
打开 nonebot2 项目根目录下的 pyproject.toml
文件, 在 [tool.nonebot]
部分的 plugins
项里追加写入
[tool.nonebot]
plugins = [
# ...
"nonebot_plugin_callapi"
]
⚙️ 配置
在 nonebot2 项目的 .env
文件中添加下表中的必填配置
配置项 | 必填 | 默认值 | 说明 |
---|---|---|---|
CALLAPI_PIC |
否 | True |
API 调用结果是否生成为图片 Tip: 除 SAA 支持的平台 以及 Telegram 外, 调用结果只能发送为纯文本 |
🎉 使用
指令
插件指令仅限 SUPERUSER
调用
效果图
📞 联系
QQ:3076823485
Telegram:@lgc2333
吹水群:1105946125
邮箱:lgc2333@126.com
💡 鸣谢
ITCraftDevelopmentTeam/XDbot2
功能启发
MeetWq/pil-utils
超好用的 Pillow 辅助库
felinae98/nonebot-plugin-send-anything-anywhere
多适配器消息发送支持(本插件用来发送图片)
💰 赞助
感谢大家的赞助!你们的赞助将是我继续创作的动力!
-
赞助二维码(点击展开)
📝 更新日志
芝士刚刚发布的插件,还没有更新日志的说 qwq~
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for nonebot_plugin_callapi-0.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5422c73326a2569eeed275b4480e104e9c73aebe237e0cdddf0031efdda45495 |
|
MD5 | f33b4e1f314f8054def339b02059023b |
|
BLAKE2b-256 | dd6a593f1f3cc5f97bfee86362be4c677bdd139a78e14b9476431504b7c91c7f |
Close
Hashes for nonebot_plugin_callapi-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b84aad37ffa861042bb58cb27a64901d7fe7f50523c3e8b6147f8e3f94d710f4 |
|
MD5 | 8a21de3eeb74ac54866873477eae191a |
|
BLAKE2b-256 | 5421c989727891dc16d84782a670c09590ac88b3a4c1a312c9219f3f9a1442eb |