nonebot-plugin-ikun-evolution


Namenonebot-plugin-ikun-evolution JSON
Version 1.0.12 PyPI version JSON
download
home_pagehttps://github.com/RShock/nonebot_plugin_ikun_evolution
Summary移植自真寻的q群小游戏
upload_time2023-01-03 03:56:26
maintainer
docs_urlNone
author小r
requires_python>=3.9,<4.0
licenseMIT
keywords nonebot nonebot2
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 只因进化录

移植自真寻的[只因进化录](https://github.com/RShock/ikun_evolution)

## 安装

### 前置条件

* python版本应当大于3.9
* gocqhttp为rc3以上,否则可能存在组消息发送为空的情况
* 没有使用`SQLAlchemy1.4`的插件,如[GenshinUID](https://github.com/KimigaiiWuyi/GenshinUID)。以及其他使用数据库的插件也可能导致问题。
如果存在,运行时会出现以下错误
```
module 'sqlalchemy.sql.schema' has no attribute '_schema_getter'
```
并且`poetry install`无法成功。
具体可以在`poetry.lock`文件里搜索`sqlalchemy`观看是否有插件在使用1.4版本。
这个问题影响范围很大。根本冲突是真寻在使用sqlalchemy1.3(gino)但是nonebot普遍使用1.4,导致我只能选一边,没有解决方案。仅剩方案是同时开多个bot。

### 插件安装
```
pip install nonebot_plugin_ikun_evolution
```
在 nonebot2 项目中设置 load_plugin()
```
nonebot.load_plugin('nonebot_plugin_ikun_evolution')
```

或者直接下载拖到插件文件夹里。

### 数据库配置

你需要安装一个[postgresql数据库](https://hibikier.github.io/zhenxun_bot/docs/installation_doc/install_postgresql.html)才能进行游戏

安装完毕后,在`env.dev`里填上刚刚的数据库链接
```
psql = postgresql://名字:密码@127.0.0.1:5432/数据库名字
```

如果按真寻教程就是
```
psql = postgresql://uname:zhenxun@127.0.0.1:5432/testdb
```

这步有点困难,好处是再也不用担心误删数据库了。请加油罢

## 已知问题

在初次运行时,无法正确加载资源。

只需要再运行一次bot,看见
```
nonebot_plugin_ikun_evolution | 【只因进化录】资源载入中
nonebot_plugin_ikun_evolution | 【只因进化录】任务载入完成,共9个任务
nonebot_plugin_ikun_evolution | 【只因进化录】制作表载入完成,共1个配方
nonebot_plugin_ikun_evolution | 【只因进化录】地图载入完成,共42张地图
nonebot_plugin_ikun_evolution | 【只因进化录】帮助载入完成,共11条帮助
nonebot_plugin_ikun_evolution | 【只因进化录】技能载入完成,共38个技能
nonebot_plugin_ikun_evolution | 【只因进化录】敌人载入完成,共30个敌人
nonebot_plugin_ikun_evolution | 【只因进化录】物品载入完成,共7个物品
```
即为载入完成

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/RShock/nonebot_plugin_ikun_evolution",
    "name": "nonebot-plugin-ikun-evolution",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.9,<4.0",
    "maintainer_email": "",
    "keywords": "nonebot,nonebot2",
    "author": "\u5c0fr",
    "author_email": "418648118@qq.com",
    "download_url": "https://files.pythonhosted.org/packages/cc/16/6273014feab3687bb6f49d9f9c5a8ea852c17eb6da075ff60ef5b319a79a/nonebot_plugin_ikun_evolution-1.0.12.tar.gz",
    "platform": null,
    "description": "# \u53ea\u56e0\u8fdb\u5316\u5f55\n\n\u79fb\u690d\u81ea\u771f\u5bfb\u7684[\u53ea\u56e0\u8fdb\u5316\u5f55](https://github.com/RShock/ikun_evolution)\n\n## \u5b89\u88c5\n\n### \u524d\u7f6e\u6761\u4ef6\n\n* python\u7248\u672c\u5e94\u5f53\u5927\u4e8e3.9\n* gocqhttp\u4e3arc3\u4ee5\u4e0a\uff0c\u5426\u5219\u53ef\u80fd\u5b58\u5728\u7ec4\u6d88\u606f\u53d1\u9001\u4e3a\u7a7a\u7684\u60c5\u51b5\n* \u6ca1\u6709\u4f7f\u7528`SQLAlchemy1.4`\u7684\u63d2\u4ef6\uff0c\u5982[GenshinUID](https://github.com/KimigaiiWuyi/GenshinUID)\u3002\u4ee5\u53ca\u5176\u4ed6\u4f7f\u7528\u6570\u636e\u5e93\u7684\u63d2\u4ef6\u4e5f\u53ef\u80fd\u5bfc\u81f4\u95ee\u9898\u3002\n\u5982\u679c\u5b58\u5728\uff0c\u8fd0\u884c\u65f6\u4f1a\u51fa\u73b0\u4ee5\u4e0b\u9519\u8bef\n```\nmodule 'sqlalchemy.sql.schema' has no attribute '_schema_getter'\n```\n\u5e76\u4e14`poetry install`\u65e0\u6cd5\u6210\u529f\u3002\n\u5177\u4f53\u53ef\u4ee5\u5728`poetry.lock`\u6587\u4ef6\u91cc\u641c\u7d22`sqlalchemy`\u89c2\u770b\u662f\u5426\u6709\u63d2\u4ef6\u5728\u4f7f\u75281.4\u7248\u672c\u3002\n\u8fd9\u4e2a\u95ee\u9898\u5f71\u54cd\u8303\u56f4\u5f88\u5927\u3002\u6839\u672c\u51b2\u7a81\u662f\u771f\u5bfb\u5728\u4f7f\u7528sqlalchemy1.3\uff08gino\uff09\u4f46\u662fnonebot\u666e\u904d\u4f7f\u75281.4\uff0c\u5bfc\u81f4\u6211\u53ea\u80fd\u9009\u4e00\u8fb9\uff0c\u6ca1\u6709\u89e3\u51b3\u65b9\u6848\u3002\u4ec5\u5269\u65b9\u6848\u662f\u540c\u65f6\u5f00\u591a\u4e2abot\u3002\n\n### \u63d2\u4ef6\u5b89\u88c5\n```\npip install nonebot_plugin_ikun_evolution\n```\n\u5728 nonebot2 \u9879\u76ee\u4e2d\u8bbe\u7f6e load_plugin()\n```\nnonebot.load_plugin('nonebot_plugin_ikun_evolution')\n```\n\n\u6216\u8005\u76f4\u63a5\u4e0b\u8f7d\u62d6\u5230\u63d2\u4ef6\u6587\u4ef6\u5939\u91cc\u3002\n\n### \u6570\u636e\u5e93\u914d\u7f6e\n\n\u4f60\u9700\u8981\u5b89\u88c5\u4e00\u4e2a[postgresql\u6570\u636e\u5e93](https://hibikier.github.io/zhenxun_bot/docs/installation_doc/install_postgresql.html)\u624d\u80fd\u8fdb\u884c\u6e38\u620f\n\n\u5b89\u88c5\u5b8c\u6bd5\u540e\uff0c\u5728`env.dev`\u91cc\u586b\u4e0a\u521a\u521a\u7684\u6570\u636e\u5e93\u94fe\u63a5\n```\npsql = postgresql://\u540d\u5b57:\u5bc6\u7801@127.0.0.1:5432/\u6570\u636e\u5e93\u540d\u5b57\n```\n\n\u5982\u679c\u6309\u771f\u5bfb\u6559\u7a0b\u5c31\u662f\n```\npsql = postgresql://uname:zhenxun@127.0.0.1:5432/testdb\n```\n\n\u8fd9\u6b65\u6709\u70b9\u56f0\u96be\uff0c\u597d\u5904\u662f\u518d\u4e5f\u4e0d\u7528\u62c5\u5fc3\u8bef\u5220\u6570\u636e\u5e93\u4e86\u3002\u8bf7\u52a0\u6cb9\u7f62\n\n## \u5df2\u77e5\u95ee\u9898\n\n\u5728\u521d\u6b21\u8fd0\u884c\u65f6\uff0c\u65e0\u6cd5\u6b63\u786e\u52a0\u8f7d\u8d44\u6e90\u3002\n\n\u53ea\u9700\u8981\u518d\u8fd0\u884c\u4e00\u6b21bot\uff0c\u770b\u89c1\n```\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u8d44\u6e90\u8f7d\u5165\u4e2d\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u4efb\u52a1\u8f7d\u5165\u5b8c\u6210\uff0c\u51719\u4e2a\u4efb\u52a1\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u5236\u4f5c\u8868\u8f7d\u5165\u5b8c\u6210\uff0c\u51711\u4e2a\u914d\u65b9\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u5730\u56fe\u8f7d\u5165\u5b8c\u6210\uff0c\u517142\u5f20\u5730\u56fe\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u5e2e\u52a9\u8f7d\u5165\u5b8c\u6210\uff0c\u517111\u6761\u5e2e\u52a9\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u6280\u80fd\u8f7d\u5165\u5b8c\u6210\uff0c\u517138\u4e2a\u6280\u80fd\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u654c\u4eba\u8f7d\u5165\u5b8c\u6210\uff0c\u517130\u4e2a\u654c\u4eba\nnonebot_plugin_ikun_evolution | \u3010\u53ea\u56e0\u8fdb\u5316\u5f55\u3011\u7269\u54c1\u8f7d\u5165\u5b8c\u6210\uff0c\u51717\u4e2a\u7269\u54c1\n```\n\u5373\u4e3a\u8f7d\u5165\u5b8c\u6210\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "\u79fb\u690d\u81ea\u771f\u5bfb\u7684q\u7fa4\u5c0f\u6e38\u620f",
    "version": "1.0.12",
    "split_keywords": [
        "nonebot",
        "nonebot2"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0825ddb2384d384e0752a70e7d509fe4daf850e2c278f04d4ee5870a23bf1835",
                "md5": "8b87de888d2d049f9b8dc09e9a930b94",
                "sha256": "db092800f8905c35eacc0a96cb7ca373e7ff323f9c6b4912ff8bdc0f057063f9"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_ikun_evolution-1.0.12-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "8b87de888d2d049f9b8dc09e9a930b94",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9,<4.0",
            "size": 1205625,
            "upload_time": "2023-01-03T03:56:19",
            "upload_time_iso_8601": "2023-01-03T03:56:19.261340Z",
            "url": "https://files.pythonhosted.org/packages/08/25/ddb2384d384e0752a70e7d509fe4daf850e2c278f04d4ee5870a23bf1835/nonebot_plugin_ikun_evolution-1.0.12-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cc166273014feab3687bb6f49d9f9c5a8ea852c17eb6da075ff60ef5b319a79a",
                "md5": "2caedc61621d064af9aa5223c1920146",
                "sha256": "19e555940a4451e5a6d7191ca779de21f6be472b81218f8b7d0d6e4533bd9918"
            },
            "downloads": -1,
            "filename": "nonebot_plugin_ikun_evolution-1.0.12.tar.gz",
            "has_sig": false,
            "md5_digest": "2caedc61621d064af9aa5223c1920146",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9,<4.0",
            "size": 1189846,
            "upload_time": "2023-01-03T03:56:26",
            "upload_time_iso_8601": "2023-01-03T03:56:26.212609Z",
            "url": "https://files.pythonhosted.org/packages/cc/16/6273014feab3687bb6f49d9f9c5a8ea852c17eb6da075ff60ef5b319a79a/nonebot_plugin_ikun_evolution-1.0.12.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-01-03 03:56:26",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": "RShock",
    "github_project": "nonebot_plugin_ikun_evolution",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "nonebot-plugin-ikun-evolution"
}
        
Elapsed time: 0.05059s