mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Sep 2014
Posts: 3
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Sep 2014
Posts: 3
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?

Joined: Sep 2014
Posts: 52
Babel fish
Offline
Babel fish
Joined: Sep 2014
Posts: 52
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)
}

Joined: Sep 2014
Posts: 3
M
Self-satisified door
OP Offline
Self-satisified door
M
Joined: Sep 2014
Posts: 3
Thank you so much, I didn't notice.


Link Copied to Clipboard