介绍
这是一个让报错规范化输出,并让用户反馈触达开发者的插件!
安装方法
使用包管理器安装
在项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令pip
pip install axtbot-plugin-feedback
pdm
pdm add axtbot-plugin-feedback
poetry
poetry add axtbot-plugin-feedback
使用源码安装
在项目的插件目录下,打开命令行,输入以下内容 ```bash git clone https://github.com/Shanshui2024/axtbot-plugin-feedback ```把src中的文件夹拷贝至插件目录下
打开项目根目录下的 pyproject.toml 文件, 在 [tool.axtbot] 部分追加写入
plugins = ["axtbot_plugin_feedback"]
配置
为使用主动推送功能,请打开机器人在指定群聊的主动消息权限,然后在 .env 文件中输入
FEEDBACK_GROUP_OPENID="你的群OpenID,建议从日志找"
用法
对于其他想要加入该功能的插件,可以在发送报错的时候同时发送一个键盘,大概如下:
{
"rows": [
{
"buttons": [
{
"id": "xxx功能:feedback",
"render_data": {
"label": "反馈",
"visited_label": "已反馈",
"style": 3
},
"action": {
"type": 1,
"data": message,
"click_limit": 1,
"permission":{
"type": 0,
"specify_user_ids": [
user_openid
]
}
}
}
]
}
]
}
请确保您的反馈按钮ID格式为 xxxx:feedback,传回的 data 可以是报错信息
这样 就可以被该插件读取并使用啦~
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file axtbot_plugin_feedback-1.0.0.tar.gz.
File metadata
- Download URL: axtbot_plugin_feedback-1.0.0.tar.gz
- Upload date:
- Size: 2.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
13333dc88de372126e4a377770aa61b3aca85d85f12f7eff1ff6cad927b2d709
|
|
| MD5 |
a64d1558128f8fe5f281a2f77125661f
|
|
| BLAKE2b-256 |
8fe84f8a3deae2bda327f820b1bf9715dede61b5531ee1f1257bbac14582ff0b
|
File details
Details for the file axtbot_plugin_feedback-1.0.0-py3-none-any.whl.
File metadata
- Download URL: axtbot_plugin_feedback-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
486a3aeccdef407cc33f1c0d57bd84a3baba6c31d4df0b2e8e8f1e10a4c441fa
|
|
| MD5 |
5d8a02fe0f1379b97611f1b0103267ab
|
|
| BLAKE2b-256 |
e7c3cb2a6b726cdf99e447c0ed2f5c0553d326c6a4f001101f1e490c4f2241b9
|