Example #1
0
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)
Example #2
0
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)