mIRC Homepage
Hey there, I am somewhat a newbie at mIRC, and I have been having some trouble with the scripting.
I am currently making a Twitch.tv bot, and I have a program that writes the song currently playing to a .txt file, which can be read. Although, it isn't reading it correctly. I want it to display in the chat when people use a command to see what song is playing.

Here is the script:
on *:TEXT:!song:#: {
if ((%floodsong) || ($($+(%,floodsong.,$nick),2))) { return }
set -u10 %floodsong On
set -u30 %floodsong. $+ $nick On
$read (C:\Users\Cawley\Downloads\SMG OBS\current_song.txt)
}

I have looked at the help file, but after multiple re-writes, it still doesn't work.

Any ideas?
You forgot to message the channel:

Code:
on *:TEXT:!song:#: {
 if ((%floodsong) || ($($+(%,floodsong.,$nick),2))) { return }
 set -u10 %floodsong On
 set -u30 %floodsong. $+ $nick On
 msg # $read(C:\Users\Cawley\Downloads\SMG OBS\current_song.txt)
}
Thank you so much, I didn't notice.
© mIRC Discussion Forums