start bot in a thread.