nonebot-plugin-randomtkk


Namenonebot-plugin-randomtkk JSON
Version 0.1.5.post1 PyPI version JSON
download
home_pagehttps://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk
SummaryFind Tan Kuku!
upload_time2023-03-29 10:01:46
maintainer
docs_urlNone
authorKafCoppelia
requires_python>=3.8,<4.0
licenseMIT
keywords nonebot2 nonebot-plugin random tankuku minatoaquacrews
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <div align="center">
    <img width="200" src="tkk_logo.png" alt="logo"></br>

# Random Tan Kuku

\_🎶 随机唐可可 🎶

</div>
<p align="center">

  <a href="https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk/blob/master/LICENSE">
    <img src="https://img.shields.io/github/license/MinatoAquaCrews/nonebot_plugin_randomtkk?color=blue">
  </a>

  <a href="https://github.com/nonebot/nonebot2">
    <img src="https://img.shields.io/badge/nonebot2-2.0.0b3+-green">
  </a>

  <a href="https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk/releases/tag/v0.1.5.post1">
    <img src="https://img.shields.io/github/v/release/MinatoAquaCrews/nonebot_plugin_randomtkk?color=orange">
  </a>

  <a href="https://www.codefactor.io/repository/github/MinatoAquaCrews/nonebot_plugin_randomtkk">
    <img src="https://img.shields.io/codefactor/grade/github/MinatoAquaCrews/nonebot_plugin_randomtkk/master?color=red">
  </a>

  <a href="https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk">
    <img src="https://img.shields.io/pypi/dm/nonebot_plugin_randomtkk">
  </a>

  <a href="https://results.pre-commit.ci/latest/github/MinatoAquaCrews/nonebot_plugin_randomtkk/master">
	<img src="https://results.pre-commit.ci/badge/github/MinatoAquaCrews/nonebot_plugin_randomtkk/master.svg" alt="pre-commit.ci status">
  </a>

</p>

## 版本

[v0.1.5.post1](https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk/releases/tag/v0.1.5.post1)

⚠ 适配nonebot2-2.0.0b3+

## 安装

1. 通过 `pip` 或 `nb` 安装;

2. 随机唐可可图片等资源默认位于插件的 `./resource` 下;亦可在 `env` 下设置 `TKK_PATH` 以更改存储路径;

   ```python
   TKK_PATH="your-path-to-resource"
   ```

3. 可更改默认配置:

   ```python
   TKK_PATH="./data/resource"  # 资源路径,可自行修改
   EASY_SIZE=10                # 简单
   NORMAL_SIZE=20              # 普通
   HARD_SIZE=40                # 困难
   EXTREME_SIZE=60             # 地狱
   MAX_SIZE=80                 # 自定义的最大尺寸,建议不要大于99
   ```

   注意图片最小尺寸为10,最大尺寸可通过`MAX_SIZE`修改(默认80,不要超过99,否则无法指定),但生成时间会变长;

4. 缺失资源时会尝试从repo中下载至指定路径。

   ⚠ 使用 `raw.fgit.ml` 进行加速,不确保下载成功

5. 呜↗太⬆好⬇听↙了↖吧↗你唱歌真的好好听啊,简直就是天籁!我刚才,听到你唱歌了。我们以后一起唱好不好?一起唱!一起做学园偶像!

## 功能

寻找LoveLive的成员!

## 命令

1. 开始游戏:[随机唐可可][空格][简单/普通/困难/地狱/自定义数量],开始游戏后会限时挑战,可替换为其他角色名;

   ⚠ 可以[随机唐可可]不指定难度(默认普通)的方式开启游戏,可替换为其他角色名

   ⚠ 角色名包括组合「[LoveLive!-μ's](https://zh.moegirl.org.cn/LoveLive!)」、「[LoveLive!Sunshine!!-Aqours](https://zh.moegirl.org.cn/LoveLive!Sunshine!!)」、「[LoveLive!Superstar!!-Liella](https://zh.moegirl.org.cn/LoveLive!Superstar!!)」成员名称及常见昵称

2. 显示帮助:[随机唐可可][空格][帮助],可替换为其他角色名,效果一样;

3. 输入答案:[答案是][行][空格][列],行列为具体数字,例如:答案是114 514;

4. 答案正确则结束此次游戏;若不正确,则直至倒计时结束,Bot公布答案并结束游戏;

5. 提前结束游戏:[找不到唐可可](或其他角色名,需要与开启时输入的角色名相同),仅**游戏发起者**可提前结束游戏;

6. 各群聊互不影响,每个群聊仅能同时开启一局游戏。

## 功能展示

![tkk_display](./tkk_display.jpg)

## 本插件改自

[Hoshino-randomtkk](https://github.com/kosakarin/hoshino_big_cockroach)

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk",
    "name": "nonebot-plugin-randomtkk",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.8,<4.0",
    "maintainer_email": "",
    "keywords": "nonebot2,nonebot-plugin,Random Tankuku,MinatoAquaCrews",
    "author": "KafCoppelia",
    "author_email": "k740677208@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/36/5a/c05b81c3be09d7471aee9f32579d7f303e03378a75d42a70d275204b23ab/nonebot_plugin_randomtkk-0.1.5.post1.tar.gz",
    "platform": null,
    "description": "<div align=\"center\">\n    <img width=\"200\" src=\"tkk_logo.png\" alt=\"logo\"></br>\n\n# Random Tan Kuku\n\n\\_\ud83c\udfb6 \u968f\u673a\u5510\u53ef\u53ef \ud83c\udfb6\n\n</div>\n<p align=\"center\">\n\n  <a href=\"https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk/blob/master/LICENSE\">\n    <img src=\"https://img.shields.io/github/license/MinatoAquaCrews/nonebot_plugin_randomtkk?color=blue\">\n  </a>\n\n  <a href=\"https://github.com/nonebot/nonebot2\">\n    <img src=\"https://img.shields.io/badge/nonebot2-2.0.0b3+-green\">\n  </a>\n\n  <a href=\"https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk/releases/tag/v0.1.5.post1\">\n    <img src=\"https://img.shields.io/github/v/release/MinatoAquaCrews/nonebot_plugin_randomtkk?color=orange\">\n  </a>\n\n  <a href=\"https://www.codefactor.io/repository/github/MinatoAquaCrews/nonebot_plugin_randomtkk\">\n    <img src=\"https://img.shields.io/codefactor/grade/github/MinatoAquaCrews/nonebot_plugin_randomtkk/master?color=red\">\n  </a>\n\n  <a href=\"https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk\">\n    <img src=\"https://img.shields.io/pypi/dm/nonebot_plugin_randomtkk\">\n  </a>\n\n  <a href=\"https://results.pre-commit.ci/latest/github/MinatoAquaCrews/nonebot_plugin_randomtkk/master\">\n\t<img src=\"https://results.pre-commit.ci/badge/github/MinatoAquaCrews/nonebot_plugin_randomtkk/master.svg\" alt=\"pre-commit.ci status\">\n  </a>\n\n</p>\n\n## \u7248\u672c\n\n[v0.1.5.post1](https://github.com/MinatoAquaCrews/nonebot_plugin_randomtkk/releases/tag/v0.1.5.post1)\n\n\u26a0 \u9002\u914dnonebot2-2.0.0b3+\n\n## \u5b89\u88c5\n\n1. \u901a\u8fc7 `pip` \u6216 `nb` \u5b89\u88c5\uff1b\n\n2. \u968f\u673a\u5510\u53ef\u53ef\u56fe\u7247\u7b49\u8d44\u6e90\u9ed8\u8ba4\u4f4d\u4e8e\u63d2\u4ef6\u7684 `./resource` \u4e0b\uff1b\u4ea6\u53ef\u5728 `env` \u4e0b\u8bbe\u7f6e `TKK_PATH` \u4ee5\u66f4\u6539\u5b58\u50a8\u8def\u5f84\uff1b\n\n   ```python\n   TKK_PATH=\"your-path-to-resource\"\n   ```\n\n3. \u53ef\u66f4\u6539\u9ed8\u8ba4\u914d\u7f6e\uff1a\n\n   ```python\n   TKK_PATH=\"./data/resource\"  # \u8d44\u6e90\u8def\u5f84\uff0c\u53ef\u81ea\u884c\u4fee\u6539\n   EASY_SIZE=10                # \u7b80\u5355\n   NORMAL_SIZE=20              # \u666e\u901a\n   HARD_SIZE=40                # \u56f0\u96be\n   EXTREME_SIZE=60             # \u5730\u72f1\n   MAX_SIZE=80                 # \u81ea\u5b9a\u4e49\u7684\u6700\u5927\u5c3a\u5bf8\uff0c\u5efa\u8bae\u4e0d\u8981\u5927\u4e8e99\n   ```\n\n   \u6ce8\u610f\u56fe\u7247\u6700\u5c0f\u5c3a\u5bf8\u4e3a10\uff0c\u6700\u5927\u5c3a\u5bf8\u53ef\u901a\u8fc7`MAX_SIZE`\u4fee\u6539\uff08\u9ed8\u8ba480\uff0c\u4e0d\u8981\u8d85\u8fc799\uff0c\u5426\u5219\u65e0\u6cd5\u6307\u5b9a\uff09\uff0c\u4f46\u751f\u6210\u65f6\u95f4\u4f1a\u53d8\u957f\uff1b\n\n4. \u7f3a\u5931\u8d44\u6e90\u65f6\u4f1a\u5c1d\u8bd5\u4ecerepo\u4e2d\u4e0b\u8f7d\u81f3\u6307\u5b9a\u8def\u5f84\u3002\n\n   \u26a0 \u4f7f\u7528 `raw.fgit.ml` \u8fdb\u884c\u52a0\u901f\uff0c\u4e0d\u786e\u4fdd\u4e0b\u8f7d\u6210\u529f\n\n5. \u545c\u2197\u592a\u2b06\u597d\u2b07\u542c\u2199\u4e86\u2196\u5427\u2197\u4f60\u5531\u6b4c\u771f\u7684\u597d\u597d\u542c\u554a\uff0c\u7b80\u76f4\u5c31\u662f\u5929\u7c41\uff01\u6211\u521a\u624d\uff0c\u542c\u5230\u4f60\u5531\u6b4c\u4e86\u3002\u6211\u4eec\u4ee5\u540e\u4e00\u8d77\u5531\u597d\u4e0d\u597d\uff1f\u4e00\u8d77\u5531\uff01\u4e00\u8d77\u505a\u5b66\u56ed\u5076\u50cf\uff01\n\n## \u529f\u80fd\n\n\u5bfb\u627eLoveLive\u7684\u6210\u5458\uff01\n\n## \u547d\u4ee4\n\n1. \u5f00\u59cb\u6e38\u620f\uff1a[\u968f\u673a\u5510\u53ef\u53ef][\u7a7a\u683c][\u7b80\u5355/\u666e\u901a/\u56f0\u96be/\u5730\u72f1/\u81ea\u5b9a\u4e49\u6570\u91cf]\uff0c\u5f00\u59cb\u6e38\u620f\u540e\u4f1a\u9650\u65f6\u6311\u6218\uff0c\u53ef\u66ff\u6362\u4e3a\u5176\u4ed6\u89d2\u8272\u540d\uff1b\n\n   \u26a0 \u53ef\u4ee5[\u968f\u673a\u5510\u53ef\u53ef]\u4e0d\u6307\u5b9a\u96be\u5ea6\uff08\u9ed8\u8ba4\u666e\u901a\uff09\u7684\u65b9\u5f0f\u5f00\u542f\u6e38\u620f\uff0c\u53ef\u66ff\u6362\u4e3a\u5176\u4ed6\u89d2\u8272\u540d\n\n   \u26a0 \u89d2\u8272\u540d\u5305\u62ec\u7ec4\u5408\u300c[LoveLive!-\u03bc's](https://zh.moegirl.org.cn/LoveLive!)\u300d\u3001\u300c[LoveLive!Sunshine!!-Aqours](https://zh.moegirl.org.cn/LoveLive!Sunshine!!)\u300d\u3001\u300c[LoveLive!Superstar!!-Liella](https://zh.moegirl.org.cn/LoveLive!Superstar!!)\u300d\u6210\u5458\u540d\u79f0\u53ca\u5e38\u89c1\u6635\u79f0\n\n2. \u663e\u793a\u5e2e\u52a9\uff1a[\u968f\u673a\u5510\u53ef\u53ef][\u7a7a\u683c][\u5e2e\u52a9]\uff0c\u53ef\u66ff\u6362\u4e3a\u5176\u4ed6\u89d2\u8272\u540d\uff0c\u6548\u679c\u4e00\u6837\uff1b\n\n3. \u8f93\u5165\u7b54\u6848\uff1a[\u7b54\u6848\u662f][\u884c][\u7a7a\u683c][\u5217]\uff0c\u884c\u5217\u4e3a\u5177\u4f53\u6570\u5b57\uff0c\u4f8b\u5982\uff1a\u7b54\u6848\u662f114 514\uff1b\n\n4. \u7b54\u6848\u6b63\u786e\u5219\u7ed3\u675f\u6b64\u6b21\u6e38\u620f\uff1b\u82e5\u4e0d\u6b63\u786e\uff0c\u5219\u76f4\u81f3\u5012\u8ba1\u65f6\u7ed3\u675f\uff0cBot\u516c\u5e03\u7b54\u6848\u5e76\u7ed3\u675f\u6e38\u620f\uff1b\n\n5. \u63d0\u524d\u7ed3\u675f\u6e38\u620f\uff1a[\u627e\u4e0d\u5230\u5510\u53ef\u53ef]\uff08\u6216\u5176\u4ed6\u89d2\u8272\u540d\uff0c\u9700\u8981\u4e0e\u5f00\u542f\u65f6\u8f93\u5165\u7684\u89d2\u8272\u540d\u76f8\u540c\uff09\uff0c\u4ec5**\u6e38\u620f\u53d1\u8d77\u8005**\u53ef\u63d0\u524d\u7ed3\u675f\u6e38\u620f\uff1b\n\n6. \u5404\u7fa4\u804a\u4e92\u4e0d\u5f71\u54cd\uff0c\u6bcf\u4e2a\u7fa4\u804a\u4ec5\u80fd\u540c\u65f6\u5f00\u542f\u4e00\u5c40\u6e38\u620f\u3002\n\n## \u529f\u80fd\u5c55\u793a\n\n![tkk_display](./tkk_display.jpg)\n\n## \u672c\u63d2\u4ef6\u6539\u81ea\n\n[Hoshino-randomtkk](https://github.com/kosakarin/hoshino_big_cockroach)\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Find Tan Kuku!",
    "version": "0.1.5.post1",
    "split_keywords": [
        "nonebot2",
        "nonebot-plugin",
        "random tankuku",
        "minatoaquacrews"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5e998ca3927d306ba2b37d310fbedcb4d9d09259118dc0f942acb41ddc0348a1",
                "md5": "d413f977b31e2d7305b7c885007fd533",
                "sha256": "6afc4506339f69abd03773b4f1bd2ee53de0ef7101c6dfdbaec589e8c34bd900"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_randomtkk-0.1.5.post1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "d413f977b31e2d7305b7c885007fd533",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.8,<4.0",
            "size": 12508780,
            "upload_time": "2023-03-29T10:01:33",
            "upload_time_iso_8601": "2023-03-29T10:01:33.569934Z",
            "url": "https://files.pythonhosted.org/packages/5e/99/8ca3927d306ba2b37d310fbedcb4d9d09259118dc0f942acb41ddc0348a1/nonebot_plugin_randomtkk-0.1.5.post1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "365ac05b81c3be09d7471aee9f32579d7f303e03378a75d42a70d275204b23ab",
                "md5": "b7ddfabadc4944aca37035ac178e0159",
                "sha256": "cc874ea36376ad4d696931a009d5119c6cfc876c187a1d1c60d56002f0d145b3"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_randomtkk-0.1.5.post1.tar.gz",
            "has_sig": false,
            "md5_digest": "b7ddfabadc4944aca37035ac178e0159",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.8,<4.0",
            "size": 12483316,
            "upload_time": "2023-03-29T10:01:46",
            "upload_time_iso_8601": "2023-03-29T10:01:46.575465Z",
            "url": "https://files.pythonhosted.org/packages/36/5a/c05b81c3be09d7471aee9f32579d7f303e03378a75d42a70d275204b23ab/nonebot_plugin_randomtkk-0.1.5.post1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-03-29 10:01:46",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "MinatoAquaCrews",
    "github_project": "nonebot_plugin_randomtkk",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "nonebot-plugin-randomtkk"
}
        
Elapsed time: 0.05192s