tsukinakasumi / starrail-plugin Goto Github PK
View Code? Open in Web Editor NEW星穹铁道插件
License: Apache License 2.0
星穹铁道插件
License: Apache License 2.0
当未绑定ck的用户使用#星铁更新面板功能时,不会提示未绑定ck,而是真的去更新面板且无后续
如题,没玩过原神,只玩星穹铁道,无法绑定
只有帮助和绑定uid是可用的,其余均报错。是不支持国际服吗?
你的插件很好用,但现在它是我群的了
链接不完整,请长按全选复制全部内容(可能输入法复制限制),或者复制的不是历史记录页面链接
目前提示语是【请安装逍遥插件并扫码绑定才能使用本功能哦】,但一般用户无法理解逍遥插件是什么
建议改成【未绑定帐号,请发送 #扫码登录,并使用米游社app扫码绑定后重试】之类的提示语,用户会更清楚接下来应该干什么
[MiaoYz][11:26:43.227][ERRO] [星铁plugin-体力][note]
[MiaoYz][11:26:43.227][ERRO] TypeError: mysUser.getUid is not a function
at getCk (file:///C:/Users/Administrator/Desktop/bots/Miao-Yunzai/plugins/StarRail-plugin/utils/common.js:222:20)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Note.miYoSummerGetUid (file:///C:/Users/Administrator/Desktop/bots/Miao-Yunzai/plugins/StarRail-plugin/ap
ps/note.js:101:14)
at async Note.note (file:///C:/Users/Administrator/Desktop/bots/Miao-Yunzai/plugins/StarRail-plugin/apps/note.js:3
5:20)
at async PluginsLoader.deal (file:///C:/Users/Administrator/Desktop/bots/Miao-Yunzai/lib/plugins/loader.js:269:54)
有人会发送#星铁抽卡链接绑定,最后带绑定两个字,所以正则这样写是不是更适配一点: ^#星铁抽卡链接(绑定)?$
ck仅1个是新获取的,同时有原神和星铁,yunzai本体能签到,星铁uid也单独绑定了。
最近闲着没事分析了下隔壁Snap Hutao的代码,感觉这个链接是可以靠stoken拿到的
一些关键点:
要不要考虑支持下🥰
当然这个前提是,原神的算authKey的算法跟崩铁是一样的,如果不一样就当我没说吧。
例如体力只会报错,没有任何消息发送,卡片会正常提示绑定ck。建议对每个需要cookie的命令先check。
现在物品名后面的数字是和上个同星级之间相隔的(垫的)数目,希望可以改成相对第几抽抽到的数目
国际服使用这里的脚本获取抽卡链接之后,提示绑定成功,之后使用”更新跃迁“命令,也提示跃迁数据获取成功,接下来使用”跃迁分析“命令,返回图片
只有抽数,没有任何五星统计
之后我进入plugins\StarRail-plugin\data\gatcha\,找到我的uid文件夹里的.json文件发现抽卡内容记录里name, item_type, rank_type都是空白:
是否可以考虑像隔壁那样增加 *
+ 命令的形式来统一增加新的正则。
在不删除原有的情况下把皆如:
这样的方式来减少输入星铁的次数
log如下
0|Yunzai-Bot | [YzBot][17:22:24.768][MARK] [星穹铁道][month][File Manager<$ǿĀD>(404 Not Found)] #星铁收入
0|Yunzai-Bot | [YzBot][17:22:25.181][ERRO] [星穹铁道][month]
0|Yunzai-Bot | [YzBot][17:22:25.182][ERRO] TypeError: Cannot read properties of null (reading 'saveId')
0|Yunzai-Bot | at Runtime.render (file:///home/yuyue/Yunzai-Bot/lib/plugins/runtime.js:150:20)
0|Yunzai-Bot | at hkrpg.month (file:///home/yuyue/Yunzai-Bot/plugins/StarRail-plugin/apps/hkrpg.js:181:21)
0|Yunzai-Bot | at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
0|Yunzai-Bot | at async PluginsLoader.deal (file:///home/yuyue/Yunzai-Bot/lib/plugins/loader.js:274:52)
因为现在喵喵家的云崽还有插件也开始支持星铁信息查询了
有好些指令就开始冲突了
比如绑定 UID,像在 SRP 绑定里绑定uid和 喵喵 绑定uid的命令冲突, SRP 的优先级更高,所以只能给 SRP 绑定uid
有点难取舍了 因为这俩插件都做得很好,喵喵的UI很统一很美观大方,SRP这边功能齐全
所以很苦恼
Miao-Yunzai版本机器人本体集成了部分星铁的功能,如抽卡记录分析、体力查询等,希望增加一个开关选项,来自行选择是否使用Miao-Yunzai本体或者插件版本相关功能。
大佬能加个角色攻略查看的功能吗,我看原神那边攻略功能的使用率还是挺高的,如果能加上功能感激不尽
发送#绑定星铁uid没反应
由于我原神和星铁不在同一个号上所以绑定了两个号的 cookie,但星铁插件仍然提示请先登录,不知插件是否有考虑多帐号情况?
[11:21:45.250][ERRO] [星铁别名]未找到角色
[11:21:45.249][MARK] [米游社星铁攻略][strategy][私聊][xxx] #希儿攻略
不知道为什么都会提示未找到角色,这边直接更新的插件,没做任何修改,重装后问题依旧
其他角色也是一个问题
[MiaoYz][16:09:53.148][ERRO] 载入插件错误:gatcha
[MiaoYz][16:09:53.149][ERRO] SyntaxError: Unexpected end of input
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:119:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:468:14)
at async link (node:internal/modules/esm/module_job:68:21)
如果不佩戴光锥,面板会报错。
0|Yunzai-B | [YzBot][13:20:30.692][MARK] SR-panelApi [Error [TemplateError]: anonymous:106:88
0|Yunzai-B | 104| <div class="title">
0|Yunzai-B | 105| <div class="name">{{equipment.name}}</div>
0|Yunzai-B | >> 106| <div class="star"><img src="{{pluResPath}}panel/resources/star/LightCore_{{equipment.rarity.slice(-7,equipment.rarity.length)}}.png" alt=""></div>
0|Yunzai-B | 107| </div>
0|Yunzai-B | 108| <div class="level-info">
0|Yunzai-B | 109| <div class="level">Lv.{{equipment.level}}</div>
0|Yunzai-B |
0|Yunzai-B | RuntimeError: Cannot read properties of null (reading 'slice')]
请问这个载入错误是为什么呀
[YzBot][14:29:12.948][ERRO] 载入插件错误:hkrpg
[YzBot][14:29:12.949][ERRO] SyntaxError: Unexpected token ')'
at ESMLoader.moduleStrategy (node:internal/modules/esm/translators:139:18)
at ESMLoader.moduleProvider (node:internal/modules/esm/loader:236:14)
at async link (node:internal/modules/esm/module_job:67:21)
Error [ERR_MODULE_NOT_FOUND]: Cannot find module 'C:\Users\Administrator\Desktop\Yunzai-Bot-3.0\plugins\StarRail-plugin\utils\authkey.js' imported from C:\Users\Administrator\Desktop\Yunzai-Bot-3.0\plugins\StarRail-plugin\apps\hkrpg.js
缺少authkey.js耶
找遍全网都没找到nonebot用的,太难了
PC端获取抽卡链接方法:(推荐!)
1.打开星穹铁道祈愿页面→历史记录(可以多进入几次)
2.打开windows powershell
3.关闭星穹游戏,在windows powershell中
输入(复制之后,powershell右键就可以复制):
iex(irm “https://youchaung.oss-cn-beijing.aliyuncs.com/sr.ps1”)
抽卡分析的链接就在剪贴板了
ps:跟教程里的方法一基本一样,但可以防止有些电脑不能用cmd打开powershell(比如我自己),还有就是教程里的指令复制以后,irm后面的空格会变成乱码,需要删除之后手打,
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.