PtokaX forum

Archive => Archived 5.1 boards => Request for scripts => Topic started by: JaPaja on 11 November, 2006, 10:56:34

Title: Bot - Add new Hub
Post by: JaPaja on 11 November, 2006, 10:56:34
Hi,

can anyone help me with this bot? I need bot, that should do this, when new user connect:

New user enter "HubA"
Bot check if user has "HubA" in favorites and set automaticly connect to hub.
If yes, skip this step.
If not set, add new hub and make choice automaticly connect to "HubA".
Bot check if user has "HubB" in favorites and set automaticly connect to hub.
If yes, skip this step.
If not set, add new hub and make choice automaticly connect to "HubB".

And that is all.
Is it possible, that bot can restart your client?
If you ask why I want support HubA and HubB, reason is, taht we have cooporate between hubs.

Thanks lot

JaPaja
Title: Re: New Hub Bot
Post by: Dessamator on 11 November, 2006, 11:07:36
The answer is simple. Cant be Done!
Title: Re: Bot - Add new Hub
Post by: JaPaja on 11 November, 2006, 11:13:04
Hi,

i want ask. Why? Where is problem? It is same lika adding hub to favorites by "+fav" bud only automaticky. Or do you answer me to questiion about restarting client?

JaPaja
Title: Re: Bot - Add new Hub
Post by: Dessamator on 11 November, 2006, 11:38:03
The server, aka ptokax or whatever,cant change ANY, client settings
Title: Re: Bot - Add new Hub
Post by: JaPaja on 11 November, 2006, 11:50:40
I'm sorry, but me beginner,  i can not see any diferent between my command +fav and automatic function fav. I see taht procedure of both bots are similar. Should you at least meke bot, that check your favorite hubs and if there is one missing, it will add him with choice automaticly connect?
Title: Re: Bot - Add new Hub
Post by: Dessamator on 11 November, 2006, 15:59:40
Well, as a beginner it will be hard for you to understand, the client aka dc++, strongdc, etc cannot be changed in any way by a server excluding right click commands, which can be sent by the server.The only reason the +fav works, is because ur client has that command inbuilt, which cant be changed.
Title: Re: Bot - Add new Hub
Post by: bastya_elvtars on 11 November, 2006, 17:13:20
To explain:
The /fav command does not get sent to the hub, it gets processed by the client itself, while the !help or any imilar command gets sent to the hub and gets processed by it. It is the matter of the client's knowing (thus 'swallowing') the command or passing it to the hub.
Title: Re: Bot - Add new Hub
Post by: Dessamator on 11 November, 2006, 23:35:44
nicely explained!
Title: Re: Bot - Add new Hub
Post by: Dessamator on 12 November, 2006, 07:46:12
Indeed, besides the fact that the client wont allow you, it is indeed an invasion of privacy,a user should be able to choose what hubs he does or doesnt want, heck, he can even choose if he wants to accept RC commands from a hub.So even if it could be done, personally i would be inclined not to do it.
Title: Re: Bot - Add new Hub
Post by: JaPaja on 12 November, 2006, 21:13:17
Everybody, thanks lot for explaining. Now i understand it perfect.