Fix missing code

This code was missing

so last commit was broken.

because, I was running previous bot.py during manual debug. I did not notice until update commit.
I need automation tests for this project.