[SOLVED] Relay

Started by Fire-Fox, March 06, 2012, 03:39:06 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Fire-Fox

#1
Hey!

I know this is a tracker support community... but I'll try anyways :D

How do i make a good relay script for eggdrop?

It should do :

!addurl/!addmp3info/!addvideoinfo
to #addpre.nfo

!addpre/!gn/!info/!nuke/etc
to #addpre

bind pubm - "% *!addurl*" send:addpre.info
bind pubm - "% *!addvideoinfo*" send:addpre.info
bind pubm - "% *!addmp3info*" send:addpre.info

bind bot -|- addpre get:addpre.info
#ADDPRE
proc send:addpre.info {nick host hand chan text} {
        set trigger     [join [lrange [split $text] 0 0]]
        set message     [join [lrange [split $text] 1 end]]

        putlog "sent $text"
       
        putbot "addpre $trigger $message"
}
proc get:addpre.info {bot command text} {

        set trigger     [join [lrange [split $text] 0 0]]
        set message     [join [lrange [split $text] 1 end]]

        putlog "recieved $trigger from $bot"
       
        putnow "privmsg #addpre.nfo :$trigger $message"
}
putlog "addpre.info.tcl v0.5"