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 

Command to Add Channel over Botnet

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Tom65789
Voice


Joined: 18 May 2007
Posts: 6

PostPosted: Fri May 18, 2007 4:57 pm    Post subject: Command to Add Channel over Botnet Reply with quote

hi, just wondering what the syntax was or how you make a random bot add a channel to its list from a hub bot because in one of my scripts i have:

Code:
set bot [lindex [bots] [rand [llength [bots]]]]


But not sure where to go from here and how to do the equivalent of the following on a normal bot

Code:
channel add #chan
Back to top
View user's profile Send private message
YooHoo
Owner


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

PostPosted: Fri May 18, 2007 6:31 pm    Post subject: Reply with quote

maybe i am unclear what exactly you are trying to do...have the leaf get a random channel from the hub then join it? I don't understand why you would want to do this via tcl, instead of using the share module...could you be more specific in what it is you wanna accomplish, please?
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
Tom65789
Voice


Joined: 18 May 2007
Posts: 6

PostPosted: Fri May 18, 2007 6:37 pm    Post subject: Reply with quote

ok, i have one hub bot and 5 leafs.

On the hub i have a script which i want to be able to msg it something like !add #channel (this bit i have got) then it will randomly select one of the leaf bots to add that channel to the channel list of that leaf bot. (though i dont have the syntax/code which makes the bot that was selected to add that channel to its channel list)

Does this need to be in another script or can it be done from the same script which contains the !add #channel proc which selects the bot randomly using the code above which then after it randomly selects a bot tells the leafbot that was randomly selected to add that channel to its list.

Really hard to explain but im trying
Back to top
View user's profile Send private message
YooHoo
Owner


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

PostPosted: Fri May 18, 2007 8:14 pm    Post subject: Reply with quote

Tom65789 wrote:
Does this need to be in another script or can it be done from the same script which contains the !add #channel proc which selects the bot randomly using the code above which then after it randomly selects a bot tells the leafbot that was randomly selected to add that channel to its list.
to answer the main question, you already had the command correct, channel add #blah, and no, it doesn't need to be a seperate script at all. In fact, I think it would be a rather good idea to keep that procedure together with your 'main' tcl.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
Tom65789
Voice


Joined: 18 May 2007
Posts: 6

PostPosted: Sat May 19, 2007 4:12 am    Post subject: Reply with quote

but using channel add #channel makes the bot using the script join, and not one of the random leaf bots it selects. how do you make another bot on the botnet add that channel?
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 -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
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