nonebot_plugin_minesweeper


Namenonebot_plugin_minesweeper JSON
Version 0.4.1 PyPI version JSON
download
home_pagehttps://github.com/noneplugin/nonebot-plugin-minesweeper
SummaryNonebot2 扫雷插件
upload_time2024-03-02 05:26:11
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-minesweeper

适用于 [Nonebot2](https://github.com/nonebot/nonebot2) 的 扫雷插件


### 安装

- 使用 nb-cli

```
nb plugin install nonebot_plugin_minesweeper
```

- 使用 pip

```
pip install nonebot_plugin_minesweeper
```


### 配置项

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

#### `minesweeper_default_skin`
 - 类型:`str`
 - 默认:`winxp`
 - 说明:扫雷默认皮肤


### 使用

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

```
@机器人 + 扫雷 / minesweeper / 扫雷初级 / 扫雷中级 / 扫雷高级
```

*注:若命令前缀为空则需要 @机器人,否则可不@*

可使用 -r/--row ROWS 、-c/--col COLS 、-n/--num NUMS 自定义行列数和雷数;

可使用 -s/--skin SKIN 指定皮肤,默认为 winxp;

当前支持的皮肤:narkomania, mine, ocean, scratch, predator, clone, winxp, hibbeler, symbol, pacman, win98, winbw, maviz, colorsonly, icicle, mario, unknown, vista

使用 挖开/open/wk + 位置 来挖开方块,可同时指定多个位置;

使用 标记/mark/bj + 位置 来标记方块,可同时指定多个位置;

位置为 字母+数字 的组合,如“A1”


### 示例

<div align="left">
  <img src="https://s2.loli.net/2022/07/10/p1FYz5JoOwlcNXS.png" width="400" />
</div>


### 特别感谢

- [mzdluo123/MineSweeper](https://github.com/mzdluo123/MineSweeper) Mirai的扫雷小游戏
- [Minesweeper X](http://www.curtisbright.com/msx/) A minesweeper clone with extra features

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/noneplugin/nonebot-plugin-minesweeper",
    "name": "nonebot_plugin_minesweeper",
    "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/07/e9/50a1951da7b4a6cc9360288e4dff54f2fa8409840360b033a82a151feade/nonebot_plugin_minesweeper-0.4.1.tar.gz",
    "platform": null,
    "description": "# nonebot-plugin-minesweeper\n\n\u9002\u7528\u4e8e [Nonebot2](https://github.com/nonebot/nonebot2) \u7684 \u626b\u96f7\u63d2\u4ef6\n\n\n### \u5b89\u88c5\n\n- \u4f7f\u7528 nb-cli\n\n```\nnb plugin install nonebot_plugin_minesweeper\n```\n\n- \u4f7f\u7528 pip\n\n```\npip install nonebot_plugin_minesweeper\n```\n\n\n### \u914d\u7f6e\u9879\n\n> \u4ee5\u4e0b\u914d\u7f6e\u9879\u53ef\u5728 `.env.*` \u6587\u4ef6\u4e2d\u8bbe\u7f6e\uff0c\u5177\u4f53\u53c2\u8003 [NoneBot \u914d\u7f6e\u65b9\u5f0f](https://nonebot.dev/docs/appendices/config)\n\n#### `minesweeper_default_skin`\n - \u7c7b\u578b\uff1a`str`\n - \u9ed8\u8ba4\uff1a`winxp`\n - \u8bf4\u660e\uff1a\u626b\u96f7\u9ed8\u8ba4\u76ae\u80a4\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 + \u626b\u96f7 / minesweeper / \u626b\u96f7\u521d\u7ea7 / \u626b\u96f7\u4e2d\u7ea7 / \u626b\u96f7\u9ad8\u7ea7\n```\n\n*\u6ce8\uff1a\u82e5\u547d\u4ee4\u524d\u7f00\u4e3a\u7a7a\u5219\u9700\u8981 @\u673a\u5668\u4eba\uff0c\u5426\u5219\u53ef\u4e0d@*\n\n\u53ef\u4f7f\u7528 -r/--row ROWS \u3001-c/--col COLS \u3001-n/--num NUMS \u81ea\u5b9a\u4e49\u884c\u5217\u6570\u548c\u96f7\u6570\uff1b\n\n\u53ef\u4f7f\u7528 -s/--skin SKIN \u6307\u5b9a\u76ae\u80a4\uff0c\u9ed8\u8ba4\u4e3a winxp\uff1b\n\n\u5f53\u524d\u652f\u6301\u7684\u76ae\u80a4\uff1anarkomania, mine, ocean, scratch, predator, clone, winxp, hibbeler, symbol, pacman, win98, winbw, maviz, colorsonly, icicle, mario, unknown, vista\n\n\u4f7f\u7528 \u6316\u5f00/open/wk + \u4f4d\u7f6e \u6765\u6316\u5f00\u65b9\u5757\uff0c\u53ef\u540c\u65f6\u6307\u5b9a\u591a\u4e2a\u4f4d\u7f6e\uff1b\n\n\u4f7f\u7528 \u6807\u8bb0/mark/bj + \u4f4d\u7f6e \u6765\u6807\u8bb0\u65b9\u5757\uff0c\u53ef\u540c\u65f6\u6307\u5b9a\u591a\u4e2a\u4f4d\u7f6e\uff1b\n\n\u4f4d\u7f6e\u4e3a \u5b57\u6bcd+\u6570\u5b57 \u7684\u7ec4\u5408\uff0c\u5982\u201cA1\u201d\n\n\n### \u793a\u4f8b\n\n<div align=\"left\">\n  <img src=\"https://s2.loli.net/2022/07/10/p1FYz5JoOwlcNXS.png\" width=\"400\" />\n</div>\n\n\n### \u7279\u522b\u611f\u8c22\n\n- [mzdluo123/MineSweeper](https://github.com/mzdluo123/MineSweeper) Mirai\u7684\u626b\u96f7\u5c0f\u6e38\u620f\n- [Minesweeper X](http://www.curtisbright.com/msx/) A minesweeper clone with extra features\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Nonebot2 \u626b\u96f7\u63d2\u4ef6",
    "version": "0.4.1",
    "project_urls": {
        "Homepage": "https://github.com/noneplugin/nonebot-plugin-minesweeper",
        "Repository": "https://github.com/noneplugin/nonebot-plugin-minesweeper"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a46e80553ad6164d9d9a88f4584779549464af24943df5d577a0756b7e78d65c",
                "md5": "e3806d3312c78668db26622a8dc42fe3",
                "sha256": "4ac1bad001ccb4d42e6699ff79c8d61bff92d20b88be262068ebbbb9ad8ede1b"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_minesweeper-0.4.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e3806d3312c78668db26622a8dc42fe3",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 106708,
            "upload_time": "2024-03-02T05:26:09",
            "upload_time_iso_8601": "2024-03-02T05:26:09.929052Z",
            "url": "https://files.pythonhosted.org/packages/a4/6e/80553ad6164d9d9a88f4584779549464af24943df5d577a0756b7e78d65c/nonebot_plugin_minesweeper-0.4.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "07e950a1951da7b4a6cc9360288e4dff54f2fa8409840360b033a82a151feade",
                "md5": "27988f1c27405bffa5cbd5c992923177",
                "sha256": "141118697145a52cd3883f0c5310a2a3373b5b259f7a8a1082d5a7432319de58"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_minesweeper-0.4.1.tar.gz",
            "has_sig": false,
            "md5_digest": "27988f1c27405bffa5cbd5c992923177",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 104725,
            "upload_time": "2024-03-02T05:26:11",
            "upload_time_iso_8601": "2024-03-02T05:26:11.922200Z",
            "url": "https://files.pythonhosted.org/packages/07/e9/50a1951da7b4a6cc9360288e4dff54f2fa8409840360b033a82a151feade/nonebot_plugin_minesweeper-0.4.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-02 05:26:11",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "noneplugin",
    "github_project": "nonebot-plugin-minesweeper",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot_plugin_minesweeper"
}
        
Elapsed time: 0.21027s