只因进化录
移植自真寻的只因进化录
安装
前置条件
- python版本应当大于3.9
- gocqhttp为rc3以上,否则可能存在组消息发送为空的情况
- 没有使用
SQLAlchemy1.4的插件,如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数据库才能进行游戏
安装完毕后,在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个物品
即为载入完成
Metadata
Release files for nonebot-plugin-ikun-evolution 1.0.12
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| nonebot_plugin_ikun_evolution-1.0.12.tar.gz | 1.2 MB | Without provenance | Details for nonebot_plugin_ikun_evolution-1.0.12.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| nonebot_plugin_ikun_evolution-1.0.12-py3-none-any.whl | Python 3 | none | any | Details for nonebot_plugin_ikun_evolution-1.0.12-py3-none-any.whl |
Total release size: 2.4 MB
Release files / nonebot_plugin_ikun_evolution-1.0.12.tar.gz
| Download URL | nonebot_plugin_ikun_evolution-1.0.12.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
19e555940a4451e5a6d7191ca779de21f6be472b81218f8b7d0d6e4533bd9918
|
|
BLAKE2b-256 checksum How to use checksums |
cc166273014feab3687bb6f49d9f9c5a8ea852c17eb6da075ff60ef5b319a79a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.10 Windows/10
|
Release files / nonebot_plugin_ikun_evolution-1.0.12-py3-none-any.whl
| Download URL | nonebot_plugin_ikun_evolution-1.0.12-py3-none-any.whl |
|---|---|
| Size | 1.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
db092800f8905c35eacc0a96cb7ca373e7ff323f9c6b4912ff8bdc0f057063f9
|
|
BLAKE2b-256 checksum How to use checksums |
0825ddb2384d384e0752a70e7d509fe4daf850e2c278f04d4ee5870a23bf1835
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.2.2 CPython/3.9.10 Windows/10
|
Security for nonebot-plugin-ikun-evolution 1.0.12
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.