2022-08-24 00:11:18 +08:00
|
|
|
|
<p align="center" >
|
|
|
|
|
<a href="https://github.com/CMHopeSunshine/LittlePaimon/tree/nonebot2"><img src="http://static.cherishmoon.fun/LittlePaimon/readme/logo.png" width="256" height="256" alt="LittlePaimon"></a>
|
|
|
|
|
</p>
|
|
|
|
|
<h1 align="center">小派蒙|LittlePaimon</h1>
|
|
|
|
|
<h4 align="center">✨基于<a href="https://github.com/nonebot/nonebot2" target="_blank">NoneBot2</a>和<a href="https://github.com/Mrs4s/go-cqhttp" target="_blank">go-cqhttp</a>的原神Q群机器人✨</h4>
|
|
|
|
|
|
|
|
|
|
<p align="center">
|
|
|
|
|
<a href="https://cdn.jsdelivr.net/gh/CMHopeSunshine/LittlePaimon@master/LICENSE"><img src="https://img.shields.io/github/license/CMHopeSunshine/LittlePaimon" alt="license"></a>
|
|
|
|
|
<img src="https://img.shields.io/badge/Python-3.8+-yellow" alt="python">
|
2022-09-12 11:35:46 +08:00
|
|
|
|
<img src="https://img.shields.io/badge/Version-3.0.0beta5-green" alt="version">
|
2022-08-24 00:11:18 +08:00
|
|
|
|
<a href="https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=MmWrI&from=246610&biz=ka"><img src="https://img.shields.io/badge/QQ频道交流-尘世闲游-blue?style=flat-square" alt="QQ guild"></a>
|
|
|
|
|
</p>
|
|
|
|
|
|
|
|
|
|
## 丨简介
|
|
|
|
|
|
|
|
|
|
原神多功能机器人,通过米游社接口查询uid的游戏信息,并提供WIKI查询和各种各样的好玩的功能。
|
|
|
|
|
|
2022-09-12 11:35:46 +08:00
|
|
|
|
该分支正在积极**开发中**,尚未发布正式版本,欢迎帮助测试和提出宝贵意见!文档正在编写~~摸鱼~~中。
|
2022-08-24 00:11:18 +08:00
|
|
|
|
|
2022-09-06 22:33:17 +08:00
|
|
|
|
## | 功能示例
|
|
|
|
|
<details>
|
|
|
|
|
<summary>帮助列表</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/new/help.jpg" alt="help">
|
|
|
|
|
</details>
|
2022-08-24 00:11:18 +08:00
|
|
|
|
|
2022-09-06 22:33:17 +08:00
|
|
|
|
<details>
|
|
|
|
|
<summary>玩家卡片</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/new/ys.jpg" alt="ys">
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
<summary>角色背包</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/new/ysa.jpg" alt="ysa">
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
<summary>角色面板</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/new/ysd.jpg" alt="ysd">
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
<summary>角色卡片</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/new/ysc.jpg" alt="ysc">
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
<summary>深渊战报</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/new/sy.jpg" alt="sy">
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
<summary>实时便签</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/ssbq.jpg" alt="ssbq">
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
|
|
<details>
|
|
|
|
|
<summary>每月札记</summary>
|
|
|
|
|
<img src="https://static.cherishmoon.fun/LittlePaimon/readme/myzj.jpg" alt="myzj">
|
|
|
|
|
</details>
|
2022-09-06 22:42:18 +08:00
|
|
|
|
|
2022-09-12 19:22:46 +08:00
|
|
|
|
## 丨文档
|
|
|
|
|
[小派蒙文档](https://docs.paimon.cherishmoon.fun/) (文档编写中)
|
2022-09-06 22:42:18 +08:00
|
|
|
|
|
2022-08-24 01:27:11 +08:00
|
|
|
|
## 丨安装方法
|
2022-08-24 00:11:18 +08:00
|
|
|
|
|
2022-09-12 19:22:46 +08:00
|
|
|
|
> 详细教程请看文档
|
2022-09-06 22:33:17 +08:00
|
|
|
|
|
2022-08-24 00:11:18 +08:00
|
|
|
|
- 1、安装poetry`pip install poetry`
|
2022-09-06 22:33:17 +08:00
|
|
|
|
- 2、克隆本分支`git clone https://github.com/CMHopeSunshine/LittlePaimon --depth=1`
|
2022-08-24 00:11:18 +08:00
|
|
|
|
- 3、进入目录并安装依赖`poetry install`
|
2022-09-06 22:33:17 +08:00
|
|
|
|
- 4、安装配置go-cqhttp或插件版`略`
|
2022-08-24 23:29:28 +08:00
|
|
|
|
- 5、启动`poetry run nb run`
|
2022-08-24 01:27:11 +08:00
|
|
|
|
- 6、添加公共ck`添加公共ck`
|
|
|
|
|
|
2022-09-06 22:42:18 +08:00
|
|
|
|
从旧版本迁移<br>
|
2022-08-24 01:27:11 +08:00
|
|
|
|
方法一:
|
|
|
|
|
- 1、在新的文件夹,按上述前三步克隆并安装依赖,
|
|
|
|
|
- 2、然后将原来旧版本Nonebot中的除了`LittlePaimon`外的文件夹全部迁移到现在的新文件夹
|
2022-09-06 22:42:18 +08:00
|
|
|
|
- 3、如果你旧版本中使用`gocq插件`的话,要在新版本的文件夹运行`poetry run nb plugin install nonebot-plugin-gocqhttp`
|
2022-08-24 01:27:11 +08:00
|
|
|
|
- 4、你还装了其他插件的话,也是用`poetry run nb plugin nonebot-plugin-xxxx`重新装回
|
|
|
|
|
|
|
|
|
|
方法二:
|
|
|
|
|
- 1、将旧版本Bot中的`LittlePaimon`文件夹删除
|
2022-08-24 23:29:28 +08:00
|
|
|
|
- 2、克隆或下载本分支的文件,将`LittlePaimon`、`matcher_patch.py`、`requirements.txt`放到Bot目录中
|
|
|
|
|
- 3、进入虚拟环境,cd到Bot目录,运行`pip install -r requirements.txt`
|
|
|
|
|
- 4、在`bot.py`的第6行位置加一句`import matcher_patch`
|
2022-09-06 22:42:18 +08:00
|
|
|
|
- 5、将`bot.py`的`load_plugins('LittlePaimon')`的s去掉
|