def _disconnect_bots(): """Disconnect all bots.""" # Cyclic import... from filters.players import PlayerIter # Notify OnClientDisconnect listener for all bots... for bot in PlayerIter('bot'): on_client_disconnect_listener_manager.notify(bot.index)