def check_replied_to(comment):
    """Check if the bot has already replied to a post
    """
    
    with open("replied_ids.txt", "r") as f:
        replied_ids = set(f.read().splitlines())

    # check if comment already replied to
    return comment.id in replied_ids