KIRA2ZERO / koishi-plugin-pool-simulator

基于koishi框架的抽卡模拟器插件
MIT License
2 stars 0 forks source link

在错误的使用指令后会先发送发生未知错误才开始提示 #2

Closed axlmly closed 1 year ago

axlmly commented 1 year ago

报错如下 command poolmanager.draw TypeError: Cannot read properties of undefined (reading 'goodsList') at /root/koimux_bot/node_modules/koishi-plugin-pool-simulator/lib/index.js:228:36 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async _Command. (/root/koimux_bot/node_modules/koishi-plugin-pool-simulator/lib/index.js:218:9) at async Array. (/root/koimux_bot/node_modules/@koishijs/core/lib/index.cjs:1656:14) at async _Command.execute (/root/koimux_bot/node_modules/@koishijs/core/lib/index.cjs:1671:22) at async /root/koimux_bot/node_modules/@koishijs/core/lib/index.cjs:2320:22 at async _Session.withScope (/root/koimux_bot/node_modules/@koishijs/core/lib/index.cjs:2188:22) at async next (/root/koimux_bot/node_modules/@koishijs/core/lib/index.cjs:844:16) at async next (/root/koimux_bot/node_modules/@koishijs/core/lib/index.cjs:844:16) at async next (/root/koimux_bot/node_modules/@koishijs/core/lib/index.cjs:844:16)

IMG_20230911_120357.jpg

KIRA2ZERO commented 1 year ago

这个知道原因了 但是这样也没什么影响吧 反正就是错误的使用会有的

axlmly commented 1 year ago

这个知道原因了 但是这样也没什么影响吧 反正就是错误的使用会有的

主要是看着不适古怪,错误使用看群友发生的次数还挺多的。以及快捷调用是否能改成开关式,偶尔误触观感也不是很好

KIRA2ZERO commented 1 year ago

已修复