In a Twitch channel, we have a function for a weekly "sweetheart". This person gets certain perks for the week and one of the fun functions is that the chat's bot "stalks" them.

However I can't get the script to go past this portion of the code and continue to read the rest of the script. I've tried re-writing this part several times now.

Could anyone help me figure out how to write this portion? Here is a sample of what I have now:

Code:
 ;SWEETHEART STALKER
on *:text:*:#: {
  if ($nick == %sweet. [ $+ [ $network ] $+ ] . [ $+ [ $chan ] ]) {
    var %sweetr = $rand(1,20)
    if (%sweetr == 1) { msg $chan Hey, sweetheart <3 } 
    if (%sweetr == 2) { msg $chan It's the channel qt 3.14 <3 } 
    if (%sweetr == 3) { msg $chan Wow you are absolutely A-M-A-Z-I-N-G <3 } 
    if (%sweetr == 4) { msg $chan Oh hey der Kappa <3 } 
  }
} 


Thanks!