remove unnecessary codes for test in bot.go.