I am trying to go through that tutorial ... it is quite difficult for me ...
It's not a tutorial for beginners, but it would be cool if you master this command.
What I do not understand in the thread above is the two @@ you always put ...
@@ is merely a window name. You can change it to anything you like, as long as it begins with a @.
Is it possible to read variables ?? sort of like $read ($var %_dedication) ??
Easily, //msg #channel %variable
Can I do something like this ????
it doesn't read this the $2- is wrong
on *:text:*now playing*:#: {
/filter -ff dedike.txt temp.txt $+(*,$2-,*)
msg $chan $read(temp.txt)
.remove temp.txt
}
The reason my script was long is that I wanted to limit the amount of results, but you can definitely go in the easier way as you just posted.
But, if you want to send the whole file to the channel (and not only a random line), change
msg $chan $read(temp.txt) to
play $chan temp.txt Also, keep in mind that
$2- returns the second word, on to the end of the sentence (so if somebody said
"I am playing song name.mp3", $2- will be
"am playing song name.mp3"). Is this what you really want?