for some reason when i tried making this new script it just said error for every command i was trying to do. Here is my script:
Code:
on *:TEXT:!giveaway start *:#:{
  if ($read(sreglist.txt,nw,$nick)) {
    if (%giveaway == off) {
      	     set -e %giveaway on
      	     msg $chan giveaway started. Clearing old giveaway list. Please say " $+ $3 $+ " to enter the giveaway!
      	     write -c giveaway.txt
      	     write -c GiveawayWord.txt
      	     .timerWriteGiveawayWord 1 1 write GiveawayWord.txt $3 
    }
    elseif (%giveaway == on) msg $chan a giveaway is still on. please end it by saying "!giveaway end"		 
    else msg # error, please !giveaway end to fix this
  }
}
on *:TEXT:!giveaway end:#:{
  if ($read(sreglist.txt,nw,$nick)) {
    set -e %giveaway off
    msg $chan Giveaway has ended. entries: $lines(giveaway.txt) $+ . Please do !draw to pick a winner!
  }
}
on *:text:!draw:#:{ 
  if ($read(sreglist.txt,nw,$nick)) {
    var %giveawaywinner = $read(giveaway.txt)
    if (%giveaway == off) { msg $chan The winner is %giveawaywinner $+ !! If you would like to pick another winner draw again. you can message mark here http://www.twitch.tv/message/compose?to=mark_paintball and you can message the winner here http://www.twitch.tv/message/compose?to= $+ %giveawaywinner }
    elseif (%giveaway == on) { msg $chan The giveaway is still on! please do "!giveaway end" }
  }
}
on *:text:*:#:{
  if (%giveaway == on) {
    if ($read(GiveawayWord.txt,nw,$1)) {
      if (!$read(giveaway.txt,nw,$nick)) {
        write giveaway.txt $nick
      }
    }
  }
}

Here is what my error log is:

Please help. Also feel free the fix up my script, i made it in 30 minutes and isn't the best quality.


#imAbeginner
i made a chat bot for mark_paintball! http://twitch.tv/mark_paintball