mIRC Homepage
Posted By: flugger !get mp3 trigger.. - 18/01/04 09:15 PM
HOw would I write a small script that would allow users to type !trigger and it would DCC send the current mp3 that I am listening to to that user ?
Posted By: Kriminal Re: !get mp3 trigger.. - 18/01/04 10:10 PM
on *:TEXT:!get*:#:{ /dcc send $nick C:\DIR\ $+ %mp3 $+ .mp3 }
Make sure %mp3 is set to something like:
Eminem - Bully
-Kriminal
-irc.CreativeIRC.net-
-Channels: @#IRChat, @#Mp3, @#Fire, @#Scripting, @#Acer-
-Nick: Mew-
Posted By: Iori Re: !get mp3 trigger.. - 18/01/04 11:01 PM
Code:
on *:text:[color:blue]!trigger[/color]:*:{  
  if $insong.fname { dcc send $nick $ifmatch }  
}
Posted By: cold Re: !get mp3 trigger.. - 19/01/04 08:24 AM
Don't forget to support long filenames:
Code:
on *:text:[color:blue]!trigger[/color]:*:{  
  if ($insong.fname) { dcc send $nick $+(",$ifmatch,") }  
  [color:green]; ..or $shortfn($ifmatch)[/color]
}
Posted By: Iori Re: !get mp3 trigger.. - 19/01/04 03:51 PM
It does, '/dcc send' works fine with long filenames.
Posted By: cold Re: !get mp3 trigger.. - 19/01/04 04:18 PM
Edit: LOL, I'm confusing things, forget what I said about long filenames, they'd be an issue in a different situation than this one.. you're right. :tongue:
© mIRC Discussion Forums