mIRC Homepage
Posted By: zigress on PARSELINE question [Twitch] - 18/03/19 09:16 PM
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.
Posted By: Raccoon Re: on PARSELINE question [Twitch] - 18/03/19 11:07 PM
Your code in the top section is incomplete. It requires a /parseline command at the bottom to reinterpret the WHISPER into PRIVMSG. Perhaps you should review your notes from SReject.
Posted By: zigress Re: on PARSELINE question [Twitch] - 19/03/19 03:12 AM
Right, I did forget to put that. More importantly, I forgot to put the parseline out section in the code. It's working now! Thank you!
© mIRC Discussion Forums