| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Nov 09, 2006 11:28 pm Post subject: |
|
|
| Code: |
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. |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Fri Nov 10, 2006 2:58 am Post subject: |
|
|
| 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) |
|
| Back to top |
|
 |
Red_Rooste5 Voice
Joined: 21 Oct 2006 Posts: 37
|
Posted: Fri Nov 10, 2006 10:05 am Post subject: |
|
|
| Actually, what I want is that my bot joins the channel that invited the bot, then msgs that message. |
|
| Back to top |
|
 |
Red_Rooste5 Voice
Joined: 21 Oct 2006 Posts: 37
|
Posted: Sun Nov 12, 2006 3:28 pm Post subject: |
|
|
| Come on guys I really need this script to work, it's the only script I need then I can use my bot :\ |
|
| Back to top |
|
 |
metroid Owner
Joined: 16 Jun 2004 Posts: 771
|
Posted: Sun Nov 12, 2006 3:37 pm Post subject: |
|
|
| 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? |
|
| Back to top |
|
 |
Red_Rooste5 Voice
Joined: 21 Oct 2006 Posts: 37
|
Posted: Sun Nov 12, 2006 4:16 pm Post subject: |
|
|
| I have no idea, and what script did he use? Mine or the other one? |
|
| Back to top |
|
 |
smash Halfop
Joined: 31 Jul 2006 Posts: 45
|
Posted: Sun Nov 12, 2006 4:19 pm Post subject: |
|
|
| Code: | 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"
}
} |
|
|
| Back to top |
|
 |
Red_Rooste5 Voice
Joined: 21 Oct 2006 Posts: 37
|
Posted: Mon Nov 13, 2006 9:11 am Post subject: |
|
|
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? |
|
| Back to top |
|
 |
Red_Rooste5 Voice
Joined: 21 Oct 2006 Posts: 37
|
Posted: Wed Nov 15, 2006 12:41 pm Post subject: |
|
|
I tested the script and it returns
[17:40] Tcl error [invite:join]: invalid channel prefix
on .rehash |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
|
| Back to top |
|
 |
|