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.
Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
rosc2112
Revered One
Posts: 1454 Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania
Post
by rosc2112 » Thu Nov 09, 2006 11:28 pm
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.
metroid
Owner
Posts: 771 Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid » Fri Nov 10, 2006 2:58 am
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)
Red_Rooste5
Voice
Posts: 37 Joined: Sat Oct 21, 2006 7:43 am
Post
by Red_Rooste5 » Fri Nov 10, 2006 10:05 am
Actually, what I want is that my bot joins the channel that invited the bot, then msgs that message.
Red_Rooste5
Voice
Posts: 37 Joined: Sat Oct 21, 2006 7:43 am
Post
by Red_Rooste5 » Sun Nov 12, 2006 3:28 pm
Come on guys I really need this script to work, it's the only script I need then I can use my bot :\
metroid
Owner
Posts: 771 Joined: Wed Jun 16, 2004 2:46 am
Post
by metroid » Sun Nov 12, 2006 3:37 pm
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?
Red_Rooste5
Voice
Posts: 37 Joined: Sat Oct 21, 2006 7:43 am
Post
by Red_Rooste5 » Sun Nov 12, 2006 4:16 pm
I have no idea, and what script did he use? Mine or the other one?
smash
Halfop
Posts: 45 Joined: Mon Jul 31, 2006 12:33 pm
Post
by smash » Sun Nov 12, 2006 4:19 pm
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"
}
}
Red_Rooste5
Voice
Posts: 37 Joined: Sat Oct 21, 2006 7:43 am
Post
by Red_Rooste5 » Mon Nov 13, 2006 9:11 am
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?
Red_Rooste5
Voice
Posts: 37 Joined: Sat Oct 21, 2006 7:43 am
Post
by Red_Rooste5 » Wed Nov 15, 2006 12:41 pm
I tested the script and it returns
[17:40] Tcl error [invite:join]: invalid channel prefix
on .rehash
Sir_Fz
Revered One
Posts: 3794 Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:
Post
by Sir_Fz » Wed Nov 15, 2006 5:30 pm
What's the output of .set errorInfo ?