@name Light
@inputs
@outputs Light
@persist
runOnChat(1)

if (owner():lastSaid()=="off") {
    Light=0
    hint("Light: Turned off!",5)
}
if (owner():lastSaid()=="on") {
    Light=255
    hint("Light: Turned on!",5)
}
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
    
