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 

Eggdrop to join a channel with a key?
Goto page 1, 2  Next
 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Wed Nov 09, 2005 1:13 am    Post subject: Eggdrop to join a channel with a key? Reply with quote

Hey how can i get my eggdrop to join a channel with a key?

Everytime i try and do the .dump command it joins then parts...

so how can i do this?
Back to top
View user's profile Send private message
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Nov 09, 2005 1:48 am    Post subject: Reply with quote

use .+chan command and then set need-key setting to:
Code:

.chanset #blah need-key join #blah thekey

naturally, if the key changes, you'll need either to do .chanset again, have someone invite the bot, or better yet, have another bot on channel and run botnetop.tcl on all bots (for automatic key exchange when needed)
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Wed Nov 09, 2005 2:02 am    Post subject: Reply with quote

thx demond ive been looking everywhere Very Happy
Back to top
View user's profile Send private message
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Wed Nov 09, 2005 2:11 am    Post subject: Reply with quote

when u invite a bot, how do u get it to accept it?
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 09, 2005 7:02 am    Post subject: Reply with quote

anixion wrote:
when u invite a bot, how do u get it to accept it?

Code:
bind raw - INVITE join:invite

proc join:invite {from key arg} {
 channel add [lindex [split $arg :] 1]
 return 0
}

_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
demond
Revered One


Joined: 12 Jun 2004
Posts: 3073
Location: San Francisco, CA

PostPosted: Wed Nov 09, 2005 11:22 pm    Post subject: Reply with quote

Sir_Fz, that's not necessary if the channel has already been added, at least on hybrid, and I suspect on other major ircds too (bahamut is hybrid clone anyway)

in ircd, there is a boolean function can_join(), and it always returns true when the client has been invited, regardless of the reason it couldn't join: +i, +k, +l or banned; therefore, the bot will automatically (be able to) join upon invitation
_________________
connection, sharing, dcc problems? click <here>
before asking for scripting help, read <this>
use [code] tag when posting logs, code
Back to top
View user's profile Send private message Visit poster's website
anixion
Voice


Joined: 05 Nov 2005
Posts: 15

PostPosted: Thu Nov 10, 2005 1:43 am    Post subject: Reply with quote

should i just add that code to invite.tcl and add it to my egg conf and scripts dir?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Thu Nov 10, 2005 5:12 am    Post subject: Reply with quote

demond wrote:
Sir_Fz, that's not necessary if the channel has already been added, at least on hybrid, and I suspect on other major ircds too (bahamut is hybrid clone anyway)

in ircd, there is a boolean function can_join(), and it always returns true when the client has been invited, regardless of the reason it couldn't join: +i, +k, +l or banned; therefore, the bot will automatically (be able to) join upon invitation

I assumed that the channel is not added to the bot, otherwise ofcourse the bot will automatically join on invite if the channel is valid.
anixion wrote:
should i just add that code to invite.tcl and add it to my egg conf and scripts dir?

Well that's how we load scripts right?
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
Trograin
Voice


Joined: 31 Jan 2006
Posts: 2

PostPosted: Tue Jan 31, 2006 11:42 am    Post subject: Reply with quote

demond wrote:
use .+chan command and then set need-key setting to:
Code:

.chanset #blah need-key join #blah thekey

naturally, if the key changes, you'll need either to do .chanset again, have someone invite the bot, or better yet, have another bot on channel and run botnetop.tcl on all bots (for automatic key exchange when needed)



Okey, Now I have been having enough of problems with that need-key command. I am trying to get the bot to join a Private channel with a password
in the dcc chatt with the bot I frist do like this: .+chan #channelname (Where channelname i ofcourse the name of the channel)

THEN I do like this: .chanset #blah need-key join #blah thekey

Then I do a .chansave just in case. and then I do a .restart.

the channel is using +stnk sooo, what the hell si wrong. I dont get any errors from the bot when i do the restart and it dosent have ANY problems at all to jion other chanels that are totally public. but with the need-key aprt I just get stuck. Have been trying so amny approaches that I cant figure it out anymore Sad

AAnyone here taht can help me please Sad
Back to top
View user's profile Send private message
Trograin
Voice


Joined: 31 Jan 2006
Posts: 2

PostPosted: Tue Jan 31, 2006 12:20 pm    Post subject: Reply with quote

.chanset #mychannel chanmode +tnk-i key


that one worked. Problem solved Very Happy
Back to top
View user's profile Send private message
eltech
Voice


Joined: 03 Apr 2006
Posts: 3

PostPosted: Tue Apr 04, 2006 12:23 pm    Post subject: Reply with quote

Trograin wrote:
.chanset #mychannel chanmode +tnk-i key


that one worked. Problem solved Very Happy
yep, that works! Smile

I would prefer to set this in the config file.. is it possible?

Thanks..

eltech
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Apr 04, 2006 1:42 pm    Post subject: Reply with quote

Quote:
set global-chanmode "nt"

Change this line in your eggdrop.conf to whatever you want.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
eltech
Voice


Joined: 03 Apr 2006
Posts: 3

PostPosted: Tue Apr 04, 2006 2:14 pm    Post subject: Reply with quote

Sir_Fz wrote:
Quote:
set global-chanmode "nt"

Change this line in your eggdrop.conf to whatever you want.
bits and pieces..

once thats changed... whats next?

make it +k?

a little more help would be appreciated..
Back to top
View user's profile Send private message
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Tue Apr 04, 2006 2:32 pm    Post subject: Reply with quote

eltech wrote:
once thats changed... whats next?

make it +k?

a little more help would be appreciated..
A little more active participation on your part might be wise, such as reading all the useful links found on the homepage, or by using the search function. Your question has already been answered numberous times, including in the FAQ.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
eltech
Voice


Joined: 03 Apr 2006
Posts: 3

PostPosted: Tue Apr 04, 2006 2:44 pm    Post subject: Reply with quote

YooHoo wrote:
eltech wrote:
once thats changed... whats next?

make it +k?

a little more help would be appreciated..
A little more active participation on your part might be wise, such as reading all the useful links found on the homepage, or by using the search function. Your question has already been answered numberous times, including in the FAQ.
great welcome to the n00b ... thanks.. i'll read up
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help All times are GMT - 4 Hours
Goto page 1, 2  Next
Page 1 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