Giter Site home page Giter Site logo

starrail-plugin's Issues

国际服无法使用

只有帮助和绑定uid是可用的,其余均报错。是不支持国际服吗?

发送抽卡链接无法使用

链接不完整,请长按全选复制全部内容(可能输入法复制限制),或者复制的不是历史记录页面链接

建议更改未绑定ck用户使用指令时的提示语

目前提示语是【请安装逍遥插件并扫码绑定才能使用本功能哦】,但一般用户无法理解逍遥插件是什么
建议改成【未绑定帐号,请发送 #扫码登录,并使用米游社app扫码绑定后重试】之类的提示语,用户会更清楚接下来应该干什么

获取体力信息时,报错mysUser.getUid is not a function

[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也单独绑定了。

抽卡记录链接似乎能靠cookie拼出来,能否考虑支持一下直接通过米游社cookie来获取祈愿记录?

建议提示

image
在回复 请先登录时,告诉我怎么登录,至少可以提示 #星铁帮助 命令可以查看帮助。这样使用的人知道怎么登陆,在哪里可以得到帮助。

抽卡记录详情相关

现在物品名后面的数字是和上个同星级之间相隔的(垫的)数目,希望可以改成相对第几抽抽到的数目

国际服跃迁记录问题

国际服使用这里的脚本获取抽卡链接之后,提示绑定成功,之后使用”更新跃迁“命令,也提示跃迁数据获取成功,接下来使用”跃迁分析“命令,返回图片
图片_20230607070132
只有抽数,没有任何五星统计
之后我进入plugins\StarRail-plugin\data\gatcha\,找到我的uid文件夹里的.json文件发现抽卡内容记录里name, item_type, rank_type都是空白:
屏幕截图 2023-06-07 070505

星铁相关插件正则修改建议

是否可以考虑像隔壁那样增加 * + 命令的形式来统一增加新的正则。
在不删除原有的情况下把皆如:

  • #希儿攻略 -> *希儿攻略
  • #星铁绑定uid -> *绑定uid
  • #星铁收入 -> *收入
  • #星铁体力 -> *体力
  • #星铁探索 -> *探索

这样的方式来减少输入星铁的次数

发送#星铁收入时报错

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本体或者插件版本相关功能。

体力面板读不出来

其他功能都行,包括抽卡,角色面板。就是体力面板读不出来
image
image

扫码绑定和手动绑定都试过,stoken和ck看起来也是正常的

星铁抽卡链接“未绑定”?

image
获取了记录链接,发送之后也可以正常识别,发送“光锥记录”也可以正常识别并导出,只要发送跃迁分析,就显示未绑定

[星铁别名]未找到角色

[11:21:45.250][ERRO] [星铁别名]未找到角色

[11:21:45.249][MARK] [米游社星铁攻略][strategy][私聊][xxx] #希儿攻略

不知道为什么都会提示未找到角色,这边直接更新的插件,没做任何修改,重装后问题依旧
其他角色也是一个问题

载入插件错误:gatcha

[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)

Cannot find authkey.js

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耶

获取抽卡链接的另类办法(仅pc)

PC端获取抽卡链接方法:(推荐!)

1.打开星穹铁道祈愿页面→历史记录(可以多进入几次)
2.打开windows powershell
3.关闭星穹游戏,在windows powershell中
输入(复制之后,powershell右键就可以复制):
iex(irm “https://youchaung.oss-cn-beijing.aliyuncs.com/sr.ps1”)
抽卡分析的链接就在剪贴板了

ps:跟教程里的方法一基本一样,但可以防止有些电脑不能用cmd打开powershell(比如我自己),还有就是教程里的指令复制以后,irm后面的空格会变成乱码,需要删除之后手打,

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.