Really nice script, I noticed that the bot gets stuck in the step "initialising" when the chat window is open. Besides that it went from 50/50 to 80/20. I also noticed that it sometimes kills the meele guardian even though it doesnt need the extra shards in the end.
Edit: I guess the second issue is intended, since you can get the missing upgrade part if you've killed the bear already once