Skip to main content

axtbot-plugin-feedback

✨ 一个统一化的插件报错反馈系统 ✨

pypi python

介绍

这是一个让报错规范化输出,并让用户反馈触达开发者的插件!

安装方法

使用包管理器安装 在项目的插件目录下, 打开命令行, 根据你使用的包管理器, 输入相应的安装命令
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 可以是报错信息

这样 就可以被该插件读取并使用啦~

Metadata

Release files for axtbot-plugin-feedback 1.0.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for axtbot-plugin-feedback 1.0.0
File Size Uploaded Provenance
axtbot_plugin_feedback-1.0.0.tar.gz 2.9 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for axtbot-plugin-feedback 1.0.0
File Interpreter ABI Platform
axtbot_plugin_feedback-1.0.0-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / axtbot_plugin_feedback-1.0.0.tar.gz

Download URL axtbot_plugin_feedback-1.0.0.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
13333dc88de372126e4a377770aa61b3aca85d85f12f7eff1ff6cad927b2d709
BLAKE2b-256 checksum
How to use checksums
8fe84f8a3deae2bda327f820b1bf9715dede61b5531ee1f1257bbac14582ff0b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure

Release files / axtbot_plugin_feedback-1.0.0-py3-none-any.whl

Download URL axtbot_plugin_feedback-1.0.0-py3-none-any.whl
Size 3.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
486a3aeccdef407cc33f1c0d57bd84a3baba6c31d4df0b2e8e8f1e10a4c441fa
BLAKE2b-256 checksum
How to use checksums
e7c3cb2a6b726cdf99e447c0ed2f5c0553d326c6a4f001101f1e490c4f2241b9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via pdm/2.28.2 CPython/3.12.3 Linux/6.17.0-1022-azure

Security for axtbot-plugin-feedback 1.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page