| View previous topic :: View next topic |
| Author |
Message |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Wed Nov 09, 2005 1:13 am Post subject: Eggdrop to join a channel with a key? |
|
|
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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Nov 09, 2005 1:48 am Post subject: |
|
|
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 |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Wed Nov 09, 2005 2:02 am Post subject: |
|
|
thx demond ive been looking everywhere  |
|
| Back to top |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Wed Nov 09, 2005 2:11 am Post subject: |
|
|
| when u invite a bot, how do u get it to accept it? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Wed Nov 09, 2005 7:02 am Post subject: |
|
|
| 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 |
|
 |
demond Revered One

Joined: 12 Jun 2004 Posts: 3073 Location: San Francisco, CA
|
Posted: Wed Nov 09, 2005 11:22 pm Post subject: |
|
|
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 |
|
 |
anixion Voice
Joined: 05 Nov 2005 Posts: 15
|
Posted: Thu Nov 10, 2005 1:43 am Post subject: |
|
|
| should i just add that code to invite.tcl and add it to my egg conf and scripts dir? |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Thu Nov 10, 2005 5:12 am Post subject: |
|
|
| 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 |
|
 |
Trograin Voice
Joined: 31 Jan 2006 Posts: 2
|
Posted: Tue Jan 31, 2006 11:42 am Post subject: |
|
|
| 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
AAnyone here taht can help me please  |
|
| Back to top |
|
 |
Trograin Voice
Joined: 31 Jan 2006 Posts: 2
|
Posted: Tue Jan 31, 2006 12:20 pm Post subject: |
|
|
.chanset #mychannel chanmode +tnk-i key
that one worked. Problem solved  |
|
| Back to top |
|
 |
eltech Voice
Joined: 03 Apr 2006 Posts: 3
|
Posted: Tue Apr 04, 2006 12:23 pm Post subject: |
|
|
| Trograin wrote: | .chanset #mychannel chanmode +tnk-i key
that one worked. Problem solved  | yep, that works!
I would prefer to set this in the config file.. is it possible?
Thanks..
eltech |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Tue Apr 04, 2006 1:42 pm Post subject: |
|
|
| 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 |
|
 |
eltech Voice
Joined: 03 Apr 2006 Posts: 3
|
Posted: Tue Apr 04, 2006 2:14 pm Post subject: |
|
|
| 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 |
|
 |
YooHoo Owner

Joined: 13 Feb 2003 Posts: 939 Location: Redwood Coast
|
Posted: Tue Apr 04, 2006 2:32 pm Post subject: |
|
|
| 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. _________________
Johoho's TCL for beginners
 |
|
| Back to top |
|
 |
eltech Voice
Joined: 03 Apr 2006 Posts: 3
|
Posted: Tue Apr 04, 2006 2:44 pm Post subject: |
|
|
| 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 |
|
 |
|