Metadata-Version: 2.1
Name: nonebot_plugin_handle
Version: 0.3.5
Summary: Nonebot2 汉字Wordle 插件
Home-page: https://github.com/noneplugin/nonebot-plugin-handle
License: MIT
Author: meetwq
Author-email: meetwq@gmail.com
Requires-Python: >=3.8,<4.0
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.8
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: Pillow (>=9.0.0,<11.0.0)
Requires-Dist: nonebot-plugin-send-anything-anywhere (>=0.3.0,<1.0.0)
Requires-Dist: nonebot-plugin-session (>=0.2.0,<0.3.0)
Requires-Dist: nonebot2[fastapi] (>=2.0.1,<3.0.0)
Requires-Dist: pypinyin (>=0.40.0,<1.0.0)
Project-URL: Repository, https://github.com/noneplugin/nonebot-plugin-handle
Description-Content-Type: text/markdown

# nonebot-plugin-handle

适用于 [Nonebot2](https://github.com/nonebot/nonebot2) 的 汉字Wordle 猜成语插件


### 安装

- 使用 nb-cli

```
nb plugin install nonebot_plugin_handle
```

- 使用 pip

```
pip install nonebot_plugin_handle
```


### 配置项

> 以下配置项可在 `.env.*` 文件中设置，具体参考 [NoneBot 配置方式](https://nonebot.dev/docs/appendices/config)

#### `handle_strict_mode`
 - 类型：`bool`
 - 默认：`False`
 - 说明：是否启用严格模式，开启后猜测的短语必须是成语

#### `handle_color_enhance`
 - 类型：`bool`
 - 默认：`False`
 - 说明：是否启用色彩增强模式


### 使用

**以下命令需要加[命令前缀](https://nonebot.dev/docs/appendices/config#command-start-和-command-separator) (默认为`/`)，可自行设置为空**

```
@机器人 + 猜成语
```

你有十次的机会猜一个四字词语；

每次猜测后，汉字与拼音的颜色将会标识其与正确答案的区别；

青色 表示其出现在答案中且在正确的位置；

橙色 表示其出现在答案中但不在正确的位置；

每个格子的 汉字、声母、韵母、声调 都会独立进行颜色的指示。

当四个格子都为青色时，你便赢得了游戏！

可发送“结束”结束游戏；可发送“提示”查看提示。


或使用 `handle` 指令：

```
handle [--hint] [--stop] [idiom]
```


### 示例

<div align="left">
  <img src="https://s2.loli.net/2023/01/29/SplDtuFNQaKvEHR.png" width="400" />
</div>


### 特别感谢

- [antfu/handle](https://github.com/antfu/handle) A Chinese Hanzi variation of Wordle - 汉字 Wordle
- [AllanChain/chinese-wordle](https://github.com/AllanChain/chinese-wordle) Chinese idiom wordle game | 仿 wordle 的拼成语游戏

