One Eggdrop bot cannot connect to two irc servers simultaneously.Nssvtr wrote:I am a DJ for a radiostation and online station and we have a radio bot we have a secrete room that we would like to use our eggdrop bot to pick up on a request that is !request Artist - Song and it will be noticed by our eggdrop bot and reply it in another room possibly on a different server if possibly
One bot, on one irc server, in at least two channels, that relays upon command from one channel to another? If so, there are probably already scripts in the TCL archive that would do it. If not, it would be easy to write such a script.if not thats fine but if it can reply to another room that would be awesome
"other bot". What other bot?so it pics up from the other bot and sends the request in....I also forget to mention we use Icecast if that is needed info
By what method are you looking??Nssvtr wrote:ya we have 2 bots on 2 different servers thats no issue there we just need them to transtlate to eachother to basically repeat its self from one to the other if that spossible been through the archives havnt seen anything unless you see one
One way: Examine one of those relay scripts, and borrow some ideas and code. Instead of having it trigger on everything said, change the bind to one such that it triggers on your command word, when you write your own script.Nssvtr wrote:aswell it would need a trigger in order to actually repeat cause i dont want it to repeat everything just when people do !request then there artist and song
Code: Select all
########################################################################
#
# Public Request for Radio Channel - Author: play4free2
#
# version: 0.01
# by (play4free2@420-hightimes.com)
#
# To use Type !request Artist - Song Title
#
# To enable in your channel(s) you want users to request from
# type ".chanset <channel> +radiorequest"
#
########################################################################
#Begin Setup
#DJ Staff Channel:
set radiostaff "#STAFFCHANNELHERE"
#End Setup
#########################################################
#DO NOT EDIT BELOW HERE UNLESS YOU KNOW HOW TO WRITE .tcl
#########################################################
bind pub -|- !request shoutcast_request
proc shoutcast_request {nick uhost hand chan arg} {
global radiostaff
if {[lsearch -exact [channel info $chan] +radiorequest] != -1} {
set cmd [string tolower [lindex $arg 0]]
if {$cmd == ""} {
putserv "NOTICE $nick :Please use\: !request Artist - Song Title"
return 0
} else {
putserv "PRIVMSG $radiostaff :\00304\002Request from\002\: \00303$nick \00304\002for\002\: \00303$arg\003"
putserv "NOTICE $nick :Your request for \002'$arg'\002 has been succesfully sent to the station's staff."
}
}
}
setudef flag radiorequest
putlog "Public Request for Radio Channel v0.01 by: play4free2 irc.420-hightimes.com #HighTimes-Lounge loaded! Type .chanset <channel> +radiorequest to enable in your channel(s)"
Code: Select all
if {[lsearch -exact [channel info $chan] +radiorequest] != -1} {
Code: Select all
if {[channel get $chan radiorequest]} {
Code: Select all
if {![channel get $chan radiorequest]} {
Code: Select all
if {![channel get $chan radiorequest]} { return }