Metadata-Version: 2.3
Name: nonebot-plugin-sell-poor
Version: 0.1.0
Summary: 基于 LLM 的卖若插件
License: GPL3
Author: 【夜风】NightWind
Author-email: 2125714976@qq.com
Requires-Python: >=3.9
Classifier: License :: Other/Proprietary License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Requires-Dist: PyJWT (>=2.3.0)
Requires-Dist: httpx (>=0.22.0)
Requires-Dist: nonebot-adapter-onebot (>=2.3.0)
Requires-Dist: nonebot2 (>=2.3.0,<3.0.0)
Project-URL: Documentation, https://github.com/XTxiaoting14332/nonebot-plugin-sell-poor#README.md
Project-URL: Homepage, https://github.com/XTxiaoting14332/nonebot-plugin-sell-poor
Project-URL: Repository, https://github.com/XTxiaoting14332/nonebot-plugin-sell-poor
Description-Content-Type: text/markdown

<div align="center">
  <a href="https://nonebot.dev/store/plugins/"><img src="https://raw.githubusercontent.com/fllesser/nonebot-plugin-template/refs/heads/resource/.docs/NoneBotPlugin.svg" width="310" alt="logo"></a>
  <br>
<div align="center">

# nonebot-plugin-sell-poor
</div>
_✨ 基于 LLM 的卖若插件 ✨_<br>


<a href="./LICENSE">
    <img src="https://img.shields.io/github/license/XTxiaoting14332/nonebot-plugin-sell-poor.svg" alt="license">
</a>
<a href="https://pypi.python.org/pypi/nonebot-plugin-sell-poor">
    <img src="https://img.shields.io/pypi/v/nonebot-plugin-sell-poor.svg" alt="pypi">
</a>
<img src="https://img.shields.io/badge/python-3.9+-blue.svg" alt="python">

</div>



## 📖 介绍

基于 LLM 的卖若插件，使用智谱API<br>
使用智谱的 `GLM-4-Flash` 进行检测，不消耗api余额


## 💿 安装

<details open>
<summary>使用 nb-cli 安装</summary>
在 nonebot2 项目的根目录下打开命令行, 输入以下指令安装

    nb plugin install nonebot-plugin-sell-poor

</details>

<details>
<summary>pip安装</summary>

    pip install nonebot-plugin-sell-poor

打开 nonebot2 项目根目录下的 `pyproject.toml` 文件, 在 `[tool.nonebot]` 部分追加写入

    plugins = ["nonebot_plugin_llm_jade"]
</details>
<details>
<summary>Github下载</summary>

手动克隆本仓库或直接下载压缩包，将里面的 `nonebot_plugin_sell_poor` 文件夹复制到 `src/plugins` 中,并安装以下依赖

    httpx  PyJWT

</details>


</details><br>


## 🔧配置项
### 必填项

```
#智谱清言的API Key
sell_poor_token = xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

启用的群聊
sell_poor_group = ["123456789","987654321"]
```

### 非必填项

```
#触发的概率（默认为0.5）
sell_poor_probability = 0.5

# 卖若文案
sell_poor_text = "诶，还是太菜了，学不来，我也想有本领😭"

```

## 🖼️ 使用效果图

![image](./img/img.webp)
