@name Chat Array chip
@inputs 
@outputs Chat:array File:string
@persist 
@trigger 
runOnChat(1)
S="-"
S1="--"
File=hostname()+S1+map()+S1+time("month")+S+time("day")+S+time("year")+S+time("isdst")+".txt"
C=":"
GMTOffset=-7
Hour=time("hour")+GMTOffset
if(time("sec")<10){Sec="0"+time("sec")}else{Sec=toString(time("sec"))}
if(time("min")<10){Min="0"+time("min")}else{Min=toString(time("min"))}
if(Hour<0){Hour+=10-GMTOffset*2}
Time="["+Hour+C+Min+C+Sec+"]"   
Message=Time+C+lastSpoke():name()+C+" "+lastSaid()
if(first()){Chat=array()}
Chat:pushString(Message)
if(Chat:count()>10){Chat:remove(1)}