changed result to bot.network.is_connected boolean