WillFlame14 / hanabi-bot

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

restarting a crashed bot makes it change its level #438

Open downvoid opened 1 week ago

downvoid commented 1 week ago

Version (PM the bot with /version): 1.6.6a Convention settings: level 11 Steps to reproduce or replay link: https://hanab.live/shared-replay/1281288 Additional information: bot3.5 crashed on turn 5 image and it reset to level 1 after restarting

downvoid commented 1 week ago

maybe it has something to do with the misspelled word

RandoPerso commented 1 week ago

This seems to be correct. At src/command-handler.js:22, the level will be set to the level specified in the .env file if found, otherwise it is set to level 1. The bot's level does not persist across restarts otherwise.

WillFlame14 commented 1 day ago

I can't reproduce the crash, bot3.5 seems fine on turn 6. Not really sure what's happening in the log either, the spelling is intentional.

It says in the README that the bot always resets to level 1 on restarting: https://github.com/WillFlame14/hanabi-bot/blob/4114c3101cfce0358c9a472aa02cee35ea8f07cf/README.md?plain=1#L43