nonebot_plugin_wordle


Namenonebot_plugin_wordle JSON
Version 0.4.0 PyPI version JSON
download
home_pagehttps://github.com/noneplugin/nonebot-plugin-wordle
SummaryNonebot2 wordle猜单词插件
upload_time2024-02-28 13:49:53
maintainer
docs_urlNone
authormeetwq
requires_python>=3.8,<4.0
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # nonebot-plugin-wordle

适用于 [Nonebot2](https://github.com/nonebot/nonebot2) 的 wordle 猜单词插件


### 安装

- 使用 nb-cli

```
nb plugin install nonebot_plugin_wordle
```

- 使用 pip

```
pip install nonebot_plugin_wordle
```


### 使用

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

```
@机器人 + 猜单词/wordle
```

绿色块代表此单词中有此字母且位置正确;

黄色块代表此单词中有此字母,但该字母所处位置不对;

黄色块至多着色 **此单词中有这个字母的数量** 次;

灰色块代表此单词中没有此字母;

猜出单词或用光次数则游戏结束。

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

可使用 -l / --length 指定单词长度,默认为 5

可使用 -d / --dictionary 指定词典,默认为 CET4

支持的词典:GRE、考研、GMAT、专四、TOEFL、SAT、专八、IELTS、CET4、CET6


### 示例

<div align="left">
  <img src="https://s2.loli.net/2022/03/25/nuNRBUgy8KsEjiW.png" width="400" />
</div>


### 说明

黄色块着色规则为:

```
黄色块至多着色 此单词中有这个字母的数量 次。
```

针对这个规则,下面的例子能帮您更好理解,并且更好猜测词语:

假设答案是 `xOOxxxxx`。(这个词并不存在,只是为了方便理解)

当用户猜测 `xxxxxxxO` 时,O这个字母由于存在但位置不同,会被着为黄色。

当用户猜测 `xxxxxxOO` 时,由于原先单词中有两个O,所以两个O都会被着色。

当用户猜测 `xxxxxOOO` 时,由于原先单词只有两个O,因此前两个O会被着色,第3个会被着为灰色。

当用户猜测 `xxOxxxxO` 时,第1个O由于位置正确,着为绿色。第2个O着为黄色。

当用户猜测 `xxOxxxOO` 时,第1个O着绿色,第2个O着黄色,第3个O着灰色。

当用户猜测 `xOOxxxxO` 时,前两个O着绿色,第3个O着灰色。


### 特别感谢

- [SAGIRI-kawaii/sagiri-bot](https://github.com/SAGIRI-kawaii/sagiri-bot) 基于Graia Ariadne和Mirai的QQ机器人 SAGIRI-BOT

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/noneplugin/nonebot-plugin-wordle",
    "name": "nonebot_plugin_wordle",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "",
    "author": "meetwq",
    "author_email": "meetwq@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/be/14/5360e4e940df995707501b597a6bbefaabe02bfa2cd9f0ae4760b7c32ca7/nonebot_plugin_wordle-0.4.0.tar.gz",
    "platform": null,
    "description": "# nonebot-plugin-wordle\n\n\u9002\u7528\u4e8e [Nonebot2](https://github.com/nonebot/nonebot2) \u7684 wordle \u731c\u5355\u8bcd\u63d2\u4ef6\n\n\n### \u5b89\u88c5\n\n- \u4f7f\u7528 nb-cli\n\n```\nnb plugin install nonebot_plugin_wordle\n```\n\n- \u4f7f\u7528 pip\n\n```\npip install nonebot_plugin_wordle\n```\n\n\n### \u4f7f\u7528\n\n**\u4ee5\u4e0b\u547d\u4ee4\u9700\u8981\u52a0[\u547d\u4ee4\u524d\u7f00](https://nonebot.dev/docs/appendices/config#command-start-\u548c-command-separator) (\u9ed8\u8ba4\u4e3a`/`)\uff0c\u53ef\u81ea\u884c\u8bbe\u7f6e\u4e3a\u7a7a**\n\n```\n@\u673a\u5668\u4eba + \u731c\u5355\u8bcd/wordle\n```\n\n\u7eff\u8272\u5757\u4ee3\u8868\u6b64\u5355\u8bcd\u4e2d\u6709\u6b64\u5b57\u6bcd\u4e14\u4f4d\u7f6e\u6b63\u786e\uff1b\n\n\u9ec4\u8272\u5757\u4ee3\u8868\u6b64\u5355\u8bcd\u4e2d\u6709\u6b64\u5b57\u6bcd\uff0c\u4f46\u8be5\u5b57\u6bcd\u6240\u5904\u4f4d\u7f6e\u4e0d\u5bf9\uff1b\n\n\u9ec4\u8272\u5757\u81f3\u591a\u7740\u8272 **\u6b64\u5355\u8bcd\u4e2d\u6709\u8fd9\u4e2a\u5b57\u6bcd\u7684\u6570\u91cf** \u6b21\uff1b\n\n\u7070\u8272\u5757\u4ee3\u8868\u6b64\u5355\u8bcd\u4e2d\u6ca1\u6709\u6b64\u5b57\u6bcd\uff1b\n\n\u731c\u51fa\u5355\u8bcd\u6216\u7528\u5149\u6b21\u6570\u5219\u6e38\u620f\u7ed3\u675f\u3002\n\n\u53ef\u53d1\u9001\u201c\u7ed3\u675f\u201d\u7ed3\u675f\u6e38\u620f\uff1b\u53ef\u53d1\u9001\u201c\u63d0\u793a\u201d\u67e5\u770b\u63d0\u793a\u3002\n\n\u53ef\u4f7f\u7528 -l / --length \u6307\u5b9a\u5355\u8bcd\u957f\u5ea6\uff0c\u9ed8\u8ba4\u4e3a 5\n\n\u53ef\u4f7f\u7528 -d / --dictionary \u6307\u5b9a\u8bcd\u5178\uff0c\u9ed8\u8ba4\u4e3a CET4\n\n\u652f\u6301\u7684\u8bcd\u5178\uff1aGRE\u3001\u8003\u7814\u3001GMAT\u3001\u4e13\u56db\u3001TOEFL\u3001SAT\u3001\u4e13\u516b\u3001IELTS\u3001CET4\u3001CET6\n\n\n### \u793a\u4f8b\n\n<div align=\"left\">\n  <img src=\"https://s2.loli.net/2022/03/25/nuNRBUgy8KsEjiW.png\" width=\"400\" />\n</div>\n\n\n### \u8bf4\u660e\n\n\u9ec4\u8272\u5757\u7740\u8272\u89c4\u5219\u4e3a\uff1a\n\n```\n\u9ec4\u8272\u5757\u81f3\u591a\u7740\u8272 \u6b64\u5355\u8bcd\u4e2d\u6709\u8fd9\u4e2a\u5b57\u6bcd\u7684\u6570\u91cf \u6b21\u3002\n```\n\n\u9488\u5bf9\u8fd9\u4e2a\u89c4\u5219\uff0c\u4e0b\u9762\u7684\u4f8b\u5b50\u80fd\u5e2e\u60a8\u66f4\u597d\u7406\u89e3\uff0c\u5e76\u4e14\u66f4\u597d\u731c\u6d4b\u8bcd\u8bed\uff1a\n\n\u5047\u8bbe\u7b54\u6848\u662f `xOOxxxxx`\u3002\uff08\u8fd9\u4e2a\u8bcd\u5e76\u4e0d\u5b58\u5728\uff0c\u53ea\u662f\u4e3a\u4e86\u65b9\u4fbf\u7406\u89e3\uff09\n\n\u5f53\u7528\u6237\u731c\u6d4b `xxxxxxxO` \u65f6\uff0cO\u8fd9\u4e2a\u5b57\u6bcd\u7531\u4e8e\u5b58\u5728\u4f46\u4f4d\u7f6e\u4e0d\u540c\uff0c\u4f1a\u88ab\u7740\u4e3a\u9ec4\u8272\u3002\n\n\u5f53\u7528\u6237\u731c\u6d4b `xxxxxxOO` \u65f6\uff0c\u7531\u4e8e\u539f\u5148\u5355\u8bcd\u4e2d\u6709\u4e24\u4e2aO\uff0c\u6240\u4ee5\u4e24\u4e2aO\u90fd\u4f1a\u88ab\u7740\u8272\u3002\n\n\u5f53\u7528\u6237\u731c\u6d4b `xxxxxOOO` \u65f6\uff0c\u7531\u4e8e\u539f\u5148\u5355\u8bcd\u53ea\u6709\u4e24\u4e2aO\uff0c\u56e0\u6b64\u524d\u4e24\u4e2aO\u4f1a\u88ab\u7740\u8272\uff0c\u7b2c3\u4e2a\u4f1a\u88ab\u7740\u4e3a\u7070\u8272\u3002\n\n\u5f53\u7528\u6237\u731c\u6d4b `xxOxxxxO` \u65f6\uff0c\u7b2c1\u4e2aO\u7531\u4e8e\u4f4d\u7f6e\u6b63\u786e\uff0c\u7740\u4e3a\u7eff\u8272\u3002\u7b2c2\u4e2aO\u7740\u4e3a\u9ec4\u8272\u3002\n\n\u5f53\u7528\u6237\u731c\u6d4b `xxOxxxOO` \u65f6\uff0c\u7b2c1\u4e2aO\u7740\u7eff\u8272\uff0c\u7b2c2\u4e2aO\u7740\u9ec4\u8272\uff0c\u7b2c3\u4e2aO\u7740\u7070\u8272\u3002\n\n\u5f53\u7528\u6237\u731c\u6d4b `xOOxxxxO` \u65f6\uff0c\u524d\u4e24\u4e2aO\u7740\u7eff\u8272\uff0c\u7b2c3\u4e2aO\u7740\u7070\u8272\u3002\n\n\n### \u7279\u522b\u611f\u8c22\n\n- [SAGIRI-kawaii/sagiri-bot](https://github.com/SAGIRI-kawaii/sagiri-bot) \u57fa\u4e8eGraia Ariadne\u548cMirai\u7684QQ\u673a\u5668\u4eba SAGIRI-BOT\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Nonebot2 wordle\u731c\u5355\u8bcd\u63d2\u4ef6",
    "version": "0.4.0",
    "project_urls": {
        "Homepage": "https://github.com/noneplugin/nonebot-plugin-wordle",
        "Repository": "https://github.com/noneplugin/nonebot-plugin-wordle"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0ec6ecd9d4c5dddcdf03f7d7787b380befbc7719c8f24025ef7534858480c203",
                "md5": "d36e8e49d9d61db90fe767f3e9b74d87",
                "sha256": "f2addb504e567d92347234086d10c3932b0a639ed5334812522c7d29c745a0d1"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_wordle-0.4.0-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d36e8e49d9d61db90fe767f3e9b74d87",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 2646331,
            "upload_time": "2024-02-28T13:49:51",
            "upload_time_iso_8601": "2024-02-28T13:49:51.770904Z",
            "url": "https://files.pythonhosted.org/packages/0e/c6/ecd9d4c5dddcdf03f7d7787b380befbc7719c8f24025ef7534858480c203/nonebot_plugin_wordle-0.4.0-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "be145360e4e940df995707501b597a6bbefaabe02bfa2cd9f0ae4760b7c32ca7",
                "md5": "2fffa8a8a4f0e2041dbe1ee53ec4792b",
                "sha256": "8e5681e1963e4155d9e994cb8997fcc9a2420782726d125086ab6bb588665f80"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_wordle-0.4.0.tar.gz",
            "has_sig": false,
            "md5_digest": "2fffa8a8a4f0e2041dbe1ee53ec4792b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 2606072,
            "upload_time": "2024-02-28T13:49:53",
            "upload_time_iso_8601": "2024-02-28T13:49:53.468313Z",
            "url": "https://files.pythonhosted.org/packages/be/14/5360e4e940df995707501b597a6bbefaabe02bfa2cd9f0ae4760b7c32ca7/nonebot_plugin_wordle-0.4.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-02-28 13:49:53",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "noneplugin",
    "github_project": "nonebot-plugin-wordle",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot_plugin_wordle"
}
        
Elapsed time: 0.19052s