egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help with my join on invite and msg on join script.
Goto page Previous  1, 2
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Thu Nov 09, 2006 11:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Fri Nov 10, 2006 2:58 am    Post subject: Reply with quote

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
View user's profile Send private message
Red_Rooste5
Voice


Joined: 21 Oct 2006
Posts: 37

PostPosted: Fri Nov 10, 2006 10:05 am    Post subject: Reply with quote

Actually, what I want is that my bot joins the channel that invited the bot, then msgs that message.
Back to top
View user's profile Send private message
Red_Rooste5
Voice


Joined: 21 Oct 2006
Posts: 37

PostPosted: Sun Nov 12, 2006 3:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
metroid
Owner


Joined: 16 Jun 2004
Posts: 771

PostPosted: Sun Nov 12, 2006 3:37 pm    Post subject: Reply with quote

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
View user's profile Send private message
Red_Rooste5
Voice


Joined: 21 Oct 2006
Posts: 37

PostPosted: Sun Nov 12, 2006 4:16 pm    Post subject: Reply with quote

I have no idea, and what script did he use? Mine or the other one?
Back to top
View user's profile Send private message
smash
Halfop


Joined: 31 Jul 2006
Posts: 45

PostPosted: Sun Nov 12, 2006 4:19 pm    Post subject: Reply with quote

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
View user's profile Send private message
Red_Rooste5
Voice


Joined: 21 Oct 2006
Posts: 37

PostPosted: Mon Nov 13, 2006 9:11 am    Post subject: Reply with quote

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
View user's profile Send private message
Red_Rooste5
Voice


Joined: 21 Oct 2006
Posts: 37

PostPosted: Wed Nov 15, 2006 12:41 pm    Post subject: Reply with quote

I tested the script and it returns
[17:40] Tcl error [invite:join]: invalid channel prefix
on .rehash
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Wed Nov 15, 2006 5:30 pm    Post subject: Reply with quote

What's the output of .set errorInfo?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber