Files
GenshinUID/README.md
2022-12-08 23:32:13 +08:00

110 lines
6.8 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

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.

<p align="center">
<a href="https://github.com/KimigaiiWuyi/GenshinUID/"><img src="https://s2.loli.net/2022/01/31/kwCIl3cF1Z2GxnR.png" width="256" height="256" alt="GenshinUID"></a>
</p>
<h1 align = "center">GenshinUID 3.1</h1>
<h4 align = "center">✨基于<a href="https://github.com/Ice-Cirno/HoshinoBot" target="_blank">HoshinoBot</a>/<a href="https://github.com/nonebot/nonebot2" target="_blank">NoneBot2</a>/<a href="https://bot.q.qq.com/wiki/#" target="_blank">官方频道</a>/<a href="https://github.com/JustUndertaker/adapter-ntchat" target="_blank">微信适配器</a>的原神多功能插件✨</h4>
<div align = "center">
<a href="https://github.com/KimigaiiWuyi/GenshinUID/wiki" target="_blank">安装文档</a> &nbsp; · &nbsp;
<a href="https://github.com/KimigaiiWuyi/GenshinUID/wiki/File5-%E3%80%8C%E6%8C%87%E4%BB%A4%E5%88%97%E8%A1%A8%E3%80%8D" target="_blank">指令列表</a> &nbsp; · &nbsp;
<a href="https://github.com/KimigaiiWuyi/GenshinUID/issues/226">常见问题</a>
</div>
<p align="center">
<a><img src="https://s2.loli.net/2022/09/09/ZR4LTdNhpUmJHil.jpg"></a>
</p>
## 丨我该如何安装该插件?
+ 如果你使用的是[Go-cqhttp](https://github.com/Mrs4s/go-cqhttp) & [HoshinoBot](https://github.com/Ice-Cirno/HoshinoBot)**安装方法查看[此处](https://github.com/KimigaiiWuyi/GenshinUID/wiki/File1%E3%80%8CHoshinoBot%E7%9A%84%E5%AE%89%E8%A3%85%E3%80%8D)**。
+ 如果你使用的是[Go-cqhttp](https://github.com/Mrs4s/go-cqhttp) & [NoneBot2](https://github.com/nonebot/nonebot2)**安装方法查看[此处](https://github.com/KimigaiiWuyi/GenshinUID/wiki/File2%E3%80%8CNonebot2%E7%9A%84%E5%AE%89%E8%A3%85%E3%80%8D)**。(**开发者正在使用**
+ 如果你想在QQ官方的频道Bot使用此插件你需要**做好以下准备**
- 拥有QQ频道机器人的开发者账号类型私域
- 拥有已经备案好的服务器地址(视情况后期官方放开本地图片发送而定)
- **腾讯频道Bot官方的文档**,查看[此处](https://bot.q.qq.com/wiki/#)
- 安装方法:基于 [NoneBot2](https://github.com/nonebot/nonebot2)的频道适配器,具体方法可参考[Wiki](https://github.com/KimigaiiWuyi/GenshinUID/wiki/File_EX1-%E3%80%8CQQGuildBot%E7%9A%84%E5%AE%89%E8%A3%85%E3%80%8D)
+ 如果你想在微信(WeChat)端使用,请自行研究[adapter-ntchat](https://github.com/JustUndertaker/adapter-ntchat) & [ntchat-client](https://github.com/JustUndertaker/ntchat-client)
## 丨我该如何获取Cookies[#92](https://github.com/KimigaiiWuyi/GenshinUID/issues/92)[@RemKeeper](https://github.com/RemKeeper)
> 该方法现在很可能失效你应该从米游社网页的网络请求Header中拿到CK
>
> 该CK应该携带`cookie_token_v2`参数
>
> 如不确定可以直接使用下面的获取Stoken方法获取会连带CK一起获取
```js
var cookie = document.cookie;
var Str_Num = cookie.indexOf('_MHYUUID=');
cookie = '添加 ' + cookie.substring(Str_Num);
var ask = confirm('Cookie:' + cookie + '\n\n按确认然后粘贴发送给机器人');
if (ask == true) {
copy(cookie);
msg = cookie
} else {
msg = 'Cancel'
}
```
1. 复制上面全部代码然后打开https://bbs.mihoyo.com/ys/
2. 在页面上右键检查或者Ctrl+Shift+i
3. 选择控制台Console粘贴回车在弹出的窗口点确认点完自动复制
4. 然后在和机器人的私聊窗口,粘贴发送即可
**警告Cookies属于个人隐私其效用相当于账号密码请勿随意公开**
## 丨获取米游社Stoken([AutoMihoyoBBS](https://github.com/Womsxd/AutoMihoyoBBS#%E8%8E%B7%E5%8F%96%E7%B1%B3%E6%B8%B8%E7%A4%BECookie))
```js
var cookie = document.cookie;
var ask = confirm('Cookie:' + cookie + '\n\nDo you want to copy the cookie to the clipboard?');
if (ask == true) {
copy("添加 stoken" + cookie);
msg = cookie
} else {
msg = 'Cancel'
}
```
1. 复制上面全部代码然后打开http://user.mihoyo.com/
2. 在页面上右键检查或者Ctrl+Shift+i
3. 选择控制台Console粘贴回车在弹出的窗口点确认点完自动复制
4. 然后在和机器人的私聊窗口,粘贴发送即可
**警告Cookies属于个人隐私其效用相当于账号密码请勿随意公开**
## 丨感谢
- [PaimonBot](https://github.com/XiaoMiku01/PaimonBot) - 插件原始代码来自于它
- [YuanShen_User_Info](https://github.com/Womsxd/YuanShen_User_Info) - 米游社API来自于它
- *[MiniGG](https://www.minigg.cn/)* - Wiki API来自于它/插件初始化下载站来自于它
- [@MingxuanGame](https://github.com/MingxuanGame)
- [Nonebot2-beta1](https://github.com/KimigaiiWuyi/GenshinUID/tree/nonebot2-beta1)分支新建与维护
- [@shirokurakana](https://github.com/shirokurakana)
- [Nonebot2-beta1分支的修复与优化](https://github.com/KimigaiiWuyi/GenshinUID/pull/118)
- [@twfx1207](https://github.com/twfx1207) - 国际服相关功能的支持([#366](https://github.com/KimigaiiWuyi/GenshinUID/pull/366))
- [@猫冬](https://bbs.mihoyo.com/ys/accountCenter/postList?id=74019947) - 原神攻略的**授权**使用
- [@blue菌hehe](https://bbs.mihoyo.com/ys/accountCenter/postList?id=160367110) - 参考面板的**授权**使用
- [@音尘绝LiuSXwww](https://bbs.mihoyo.com/ys/accountCenter/postList?id=271681956) - 怪物数据表的**授权**使用
- [@Asgater](https://www.miyoushe.com/ys/accountCenter/postList?id=79695828) - 原牌图鉴的**授权**使用
- [虚空数据库](https://akashadata.com/) - 深渊出场数据的**授权**使用
- [@lgc233](https://github.com/lgc2333) - 众多优秀PR贡献
- [@lulu666lulu](https://github.com/lulu666lulu) - DS算法提供和验证码方案提供
- [@Monst.x](https://github.com/monsterxcn) - [fastapi-genshin-map](https://github.com/KimigaiiWuyi/fastapi_genshin_map)的内容填充和本体的修复
- [@CMHopeSunshine](https://github.com/CMHopeSunshine) - 随机图API提供
- [@Enka.Network](https://enka.shinshin.moe/) - 展柜面板的数据来源
- [@Ice-Cirno](https://github.com/Ice-Cirno) - Hoshino分支的修复与完善
- [@AMEKENN](https://github.com/AMEKENN) - 米游社签到部分的代码指导
- [@RemKeeper](https://github.com/RemKeeper) - 简易Cookies获取文档
- [@珊瑚宫千花](https://space.bilibili.com/398528056) - 角色别名Json提供
- [@wudifeixue](https://github.com/wudifeixue) - PR贡献 & Bug报告
- [@ZhouYingSASA](https://github.com/ZhouYingSASA) - PR贡献 & Bug报告
## 丨其他
+ 如果对本插件有功能建议&Bug报告欢迎提Issue & Pr每一条都会详细看过
+ 如果本插件对你有帮助不要忘了点个Star~
+ 本项目仅供学习使用,请勿用于商业用途
+ [爱发电](https://afdian.net/@KimigaiiWuyi)
+ [GPL-3.0 License](https://github.com/KimigaiiWuyi/GenshinUID/blob/main/LICENSE) ©[@KimigaiiWuyi](https://github.com/KimigaiiWuyi)