I am using SRReject's code for grabbing Twitch whispers.
Code:
;;Transforms inbound twitch whispers into private message queries
on $*:PARSELINE:in:/^((?:@\S+ )?)(\x3A[^!@ ]+![^@ ]+@\S+) WHISPER (\S+) (\x3A.*)/i:{
  var %Tags   = $regml(1)
  var %User   = $regml(2)
  var %Target = $regml(3)
  var %Msg    = $regml(4)
  }
}

I have been successful in reading the code in the status window. I am not successful in responding to the code. Below is my code which I am using to see if my bot will respond to a Twitch whisper:
Code:
ON *:TEXT:!test2:*: {
  echo -s debug: line number $scriptline $chr(124) from = $nick $chr(124) in = $chan
}

There is an output when !test2 is typed in a Twitch channel. There is no output when the same is typed in a Twitch whisper.

I would appreciate any help on how I can be able to respond to Twitch whispers. I feel as if I am missing something obvious but I can't seem to figure it out. Thank you in advance.