@name 
@inputs 
@outputs 
@persist 
@trigger 
runOnTick(1)
if(fileCanWrite()) {
    if(entity()){
        if(owner():lastSaid() != "stop"){
            if(changed(lastSaid():lower())){
            
    CODE = lastSaid():lower() 
    Name = lastSpoke():name()
    ID = lastSpoke():steamID()
            fileWrite(">e2shared/" + "chatlog4" + ".txt",CODE + " - " +  Name + " - " + ID +"\n" )
        }
}
}
}

if(owner():lastSaid() == "stop"){
    selfDestructAll()
}
    
