This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

help with song request relay

Old posts that have not been replied to for several years.
Locked
s
spudgun

help with song request relay

Post by spudgun »

Hi, i need help to make a simple script that will forward a public command to the partyline.

the bot runs on 3 different irc servers and i want it to send song requests to the partyline for the DJ to recieve (DJ's have the flag D)

i haven't done any tcl scripting for a long time and i've forgotten how :(

please help!

the requests are like this:
!request artist - title

i would like it to forward to the party line:
nickname requests: anything written after the !request trigger

so: <rar> !request fatman scoop - be faithful
would be: rar requests: fatman scoop - be faithful

plus, only DJ's with the flag D should be able to see it

thanks in advance
Dave
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

Code: Select all

# Specify handle with the +D flag
set Dhandle "Dcrew"

bind PUB - !request request:song

proc request:song {nick uhost hand chan arg} {
global Dhandle
putdcc [hand2idx $Dhandle] "\002$nick\002 requests: [join [lrange [split $arg] 0 end]]"
}
add a handle with +D flag (.i.e .+user Dcrew ; .chattr Dcrew +D ; .+host Dcew *!*@hosts....)
then whenever someone requests a song, the bot will send the Dcrew handle (i.e. the users with +D flag) nick requests: bla bla..
s
spudgun

Post by spudgun »

thanks for that...works a treat :)
Locked