GenshinUID/README.md
KimigaiiWuyi e840461deb fix
2021-09-07 20:25:51 +08:00

127 lines
4.0 KiB
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# GenshinUID / 原神UID查询
一个HoshinoBot插件用于查询原神UID信息。
注意:本插件不包含本体,您应该配合[Mrs4s](https://github.com/Mrs4s) / [go-cqhttp](https://github.com/Mrs4s/go-cqhttp) 和 [HoshinoBot](https://github.com/Ice-Cirno/HoshinoBot) 使用本插件的作用是利用米游社API查询指定原神UID信息Cookies获取可前往[YuanShen_User_Info](https://github.com/Womsxd/YuanShen_User_Info)查看教程)
已完成:角色排序(星级>等级>好感),背景图自定义(通过传参形式)
未完成:深渊数据导出,角色详细信息列表(包括武器信息,和全角色)
示例: ![1](https://raw.githubusercontent.com/KimigaiiWuyi/GenshinUID/main/readme/1.PNG)
![5](https://raw.githubusercontent.com/KimigaiiWuyi/GenshinUID/main/readme/5.PNG)
- [安装](#安装)
- [更新记录](#更新记录)
- [指令](#指令)
- [相关仓库](#相关仓库)
- [其他](#其他)
## 安装
基于[Mrs4s](https://github.com/Mrs4s) / [go-cqhttp](https://github.com/Mrs4s/go-cqhttp) 和 [HoshinoBot](https://github.com/Ice-Cirno/HoshinoBot) 的插件请确保你知晓HoshinoBot的插件安装方法和go-cqhttp的使用方法。
1、在hoshino/modules目录下执行
```sh
$ git clone https://github.com/KimigaiiWuyi/GenshinUID.git
```
2、进入GenshinUID文件夹内安装依赖库
```sh
$ pip3 install -r requirements.txt
```
3、在GenshinUID的文件夹下打开getData.py添加自己的cookies到函数cache_Cookie()中的cookie_list中。
4、在hoshino/config的`__bot__.py`文件中添加GenshinUID
## 更新记录
#### 2021-9-7
修改了米游社的salt值[@Azure](https://github.com/Azure99)修复了米游社ds算法[@lulu666lululu](https://github.com/lulu666lulu)
更换了新ui+新背景画面。
添加了自动下载拼接头像、武器的程序,以后理论上游戏更新也通用。
uid命令现在可以根据角色数量自动设定长宽并且自定义背景仍然适用并且添加了角色当前携带的武器ui界面。
![8](C:\Users\44483\Desktop\GenshinUID\readme\8.PNG)
UID命令在uid命令的基础上删除了武器的ui界面。
![7](C:\Users\44483\Desktop\GenshinUID\readme\7.PNG)
添加了深渊查询指令uidxxxxxx深渊xx例如uid123456789深渊12只能查指定楼层beta
![9](C:\Users\44483\Desktop\GenshinUID\readme\9.PNG)
删除角色命令。
#### 2021-8-14
修复宵宫和早柚可能导致的输入错误bug。
增加了简易的cookies池现在填写cookies的方法在函数cache_Cookie()中的cookie_list中支持多个cookies共同使用。
增加了新功能beta使用uid+九位数字+角色的方式触发,获取全部角色+武器信息。
增加了新的默认随机图简单修改了部分ui。
#### 2021-8-05
修复自定义图片时,竖屏图片可能造成黑边问题。
降低高斯模糊值。
#### 2021-8-01
添加自定义背景图。
#### 2021-7-29
优化排序算法。
#### 2021-7-28
添加排序算法。
#### 2021-7-26
完成主体。
#### 2021-7-18
本项目开坑。
## 指令
1、触发词uid后面跟九位uid即可。
![2](https://raw.githubusercontent.com/KimigaiiWuyi/GenshinUID/main/readme/2.png)
2、触发词后跟九位uid后跟一张任意大小的图片不能是GIF可以自定义背景
![3](https://raw.githubusercontent.com/KimigaiiWuyi/GenshinUID/main/readme/3.png)
![4](https://raw.githubusercontent.com/KimigaiiWuyi/GenshinUID/main/readme/4.png)
3、触发词后跟九位uid后跟角色可以输出一张全角色+武器的信息图beta
![6](https://raw.githubusercontent.com/KimigaiiWuyi/GenshinUID/main/readme/6.PNG)
## 相关仓库
- [PaimonBot](https://github.com/XiaoMiku01/PaimonBot) - 插件原始代码来自于它
- [YuanShen_User_Info](https://github.com/Womsxd/YuanShen_User_Info) - 米游社API来自于它
## 其他
代码写的很烂勿喷有问题可以发issues/Pull Requests~
顺便求个star~