import os

def list_environment():
    log_file_path = 'logs/activity.log' 
    with open(log_file_path, 'r') as f:
        lines = f.readlines()
    s = "NEWS: Welcome to Auto-GPT!"
    begin_position = 0
    for i in range(len(lines) - 1, -1, -1):
        if s in lines[i] and "NEXT ACTION" not in lines[i]:
            begin_position = i
            break
    if "Continuous" in lines[begin_position-1] or "Continuous" in lines[begin_position-2]:
        return False
    return True

if list_environment():
    print("Environment is ready!")
else:
    print("Environment is not ready!")  