ON *:TEXT:!multitwitch *:#: {
; set variables for the script
VAR %num = $0, %x = 1, %msg_01, %msg_02
; run WHILE loop to generate info to be used for the message lines
WHILE (%x < %num) {
VAR %name $ [ $+ [ $calc(%x + 1) ] ]
VAR %IRLname $peoplesIRLName(%name)
VAR %msg_01 %msg_01 %IRLname twitch.tv/ $+ %name and
VAR %msg_02 %msg_02 %IRLname and
INC %x
}
; cut off the trailing ends of the %msg variables created in the WHILE loop and insert into the bot's output message in chat
MSG $chan N.N. is playing with $left(%msg_01,-4)
MSG $chan If you want to watch both N.N. and $left(%msg_02,-4) but you only have one monitor: multitwitch.tv/ $+ $replace($2-,$chr(32),/)
}
alias peoplesIRLName {
IF ($1 == name_from_command) RETURN IRL_name
IF ($1 == name_from_command) RETURN IRL_name
IF ($1 == name_from_command) RETURN IRL_name
RETURN $1
}