WillFlame14 / hanabi-bot

A bot that plays on the hanab.live interface.
GNU General Public License v3.0
14 stars 9 forks source link

Crash TypeError: Cannot read properties of undefined (reading 'order') #322

Closed flackr closed 2 weeks ago

flackr commented 2 weeks ago

Version (PM the bot with /version): 1.4.13a Convention settings: /setall 5 Steps to reproduce or replay link: https://hanab.live/replay/1212944#28 Or

npm run replay -- id=1212944 index=3 level=5
navigate 28

Additional information:

TypeError: Cannot read properties of undefined (reading 'order')
    at find_clue_givers (file:///home/flackr/projects/hanabi-bot/src/conventions/h-group/take-action.js:155:79)
    at file:///home/flackr/projects/hanabi-bot/src/conventions/h-group/take-action.js:298:23
    at Array.filter (<anonymous>)
    at HGroup.take_action (file:///home/flackr/projects/hanabi-bot/src/conventions/h-group/take-action.js:291:37)
    at HGroup.handle_action (file:///home/flackr/projects/hanabi-bot/src/action-handler.js:121:36)
    at HGroup.navigate (file:///home/flackr/projects/hanabi-bot/src/basics/Game.js:322:14)
    at ReadStream.<anonymous> (file:///home/flackr/projects/hanabi-bot/src/tools/console.js:93:29)
    at ReadStream.emit (node:events:519:28)
    at emitKeys (node:internal/readline/utils:371:14)
    at emitKeys.next (<anonymous>)

Node.js v20.15.1