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 my join on invite and msg on join script.

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Code: Select all

bind dcc n part part_chan
proc part_chan {hand idx text} {
        set text [split $text]
        if {([botonchan $text]) && ([validchan $text])} {
                channel set $text +inactive
                putcmdlog "Bot setting channel +inactive and leaving $text by $hand 's command."
        } else {
                putdcc $idx "I'm not ON channel $text"
                return
        }
}
That's what I use.
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

I assume he means that he wants to send a message to a channel when the bot parts (though, since you're parting, you obviously can't send a message to the channel)
R
Red_Rooste5
Voice
Posts: 37
Joined: Sat Oct 21, 2006 7:43 am

Post by Red_Rooste5 »

Actually, what I want is that my bot joins the channel that invited the bot, then msgs that message.
R
Red_Rooste5
Voice
Posts: 37
Joined: Sat Oct 21, 2006 7:43 am

Post by Red_Rooste5 »

Come on guys I really need this script to work, it's the only script I need then I can use my bot :\
m
metroid
Owner
Posts: 771
Joined: Wed Jun 16, 2004 2:46 am

Post by metroid »

smash wrote:I tryed it and it works!

is it posable to do ./part botnick #channel as well ?
It obviously works for him, so why wouldn't it work for you?
R
Red_Rooste5
Voice
Posts: 37
Joined: Sat Oct 21, 2006 7:43 am

Post by Red_Rooste5 »

I have no idea, and what script did he use? Mine or the other one?
s
smash
Halfop
Posts: 45
Joined: Mon Jul 31, 2006 12:33 pm

Post by smash »

Code: Select all

bind raw - INVITE invite:join 
bind join - {*} invite:joinmsg 

proc invite:join {from key arg} { 
  if {![validchan [set chan [lindex [split $arg] 1]]] && [llength [channels]] < "20"} { 
    channel add $chan 
  } 
} 

proc invite:joinmsg {nick uhost hand chan} { 
  if {[isbotnick $nick]} { 
    putserv "PRIVMSG $chan :bla bla bla" 
  } 
}
R
Red_Rooste5
Voice
Posts: 37
Joined: Sat Oct 21, 2006 7:43 am

Post by Red_Rooste5 »

Yeah, I have that one as invite.tcl in my eggdrop.
And it says: source scripts/invite.tcl in eggdrop.conf
So I have no idea why?
R
Red_Rooste5
Voice
Posts: 37
Joined: Sat Oct 21, 2006 7:43 am

Post by Red_Rooste5 »

I tested the script and it returns
[17:40] Tcl error [invite:join]: invalid channel prefix
on .rehash
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

What's the output of .set errorInfo?
Post Reply