Having a bit of trouble with creating a dynamic text command for use in Twitch TV. I want to be able to have variable commands such as [command]!Why <variable> [response] Why <variable> Please <variable> Staph <variable>. I have
Code:
on +100:text:!why [dont know what to put here] :#: { msg $chan Why $+ , Please $+ , Staph $+ }
If it's a text file (Questions.txt) with Questions/responses stored such as.. Question1answer1 Question2response two Question3another response here then use something like
Code:
on +100:text:!why *:#:{
; First check if there is a question/response in the file
if $read(Questions.txt,sn,$2) {
; respond with the answer ($v1 now contains the response from the $read() above)
msg $chan Why $+ $2. Reason: $v1
}
}