When the song switches I want my bot to automatically say which song was playing/is now playing.
I've seen this one (on f.ex. Guardsmanbob's stream) and I'm quite interested in this function.
So far I have the simple work done with:
on *:TEXT:!song:#: {
if ((%floodsong) || ($($+(%,floodsong.,$nick),2))) { return }
set -u60 %floodsong On
if (!$play(#)) {
.play # C:\Snip\Snip.txt
}
Someone else gave me this part, however it does not work:
alias newsong {
if (%oldsong !isin %newsong) {
msg # Now Playing: $read(C:\Snip\Snip.txt)
%oldsong = %newsong
}
}
on *:TEXT:!song:#: {
if ((%floodsong) || ($($+(%,floodsong.,$nick),2))) { return }
set -u60 %floodsong On
if (!$play(#)) {
.play # C:\Snip\Snip.txt
/nowplayingtimer 0 5 newsong
var %oldsong
var %newsong = $read(C:\Snip\Snip.txt)
} }
I'm glad about any help!