PtokaX forum

PtokaX => Feature Proposals => Topic started by: bastya_elvtars on 21 April, 2007, 03:07:41

Title: [PXLUA]frmHub:GetBotByName()
Post by: bastya_elvtars on 21 April, 2007, 03:07:41
This function would return a bot object, with sNick, sDescription, sEmail, or nil if there is no such bot registered. It would come in handy if multiple scripts would like to use the same bot nick.
Title: Re: [PXLUA]frmHub:GetBotByName()
Post by: Thor on 21 April, 2007, 12:03:13
If this added, then frmHub:GetHubBotName(), frmHub:GetHubBotDescription() , frmHub:GetHubBotEmail() and frmHub:GetHubBot() should be removed. One call is better maybe, but then many script have to be converted... ::)
Title: Re: [PXLUA]frmHub:GetBotByName()
Post by: Madman on 21 April, 2007, 13:58:08
Bastya don't want for the hub bot Hung.
He want that frmHub:GetBotByName() to return script regged bot's
Title: Re: [PXLUA]frmHub:GetBotByName()
Post by: Thor on 21 April, 2007, 14:27:01
Well, I see now.. But why would that helpful? ??? User is trying to register a new bot, if successful, the bot appears, else not. If he or she want to use an existing but, then just use botname = "RegisteredBotFromAnAnotherScript" instead of botname = frmHub:GetHubBotName() or RegBot(mybot,mybotdesc,mybotemail). I never liked Verli's API, because that's crappy (what a rhyme, maaaan ;D), but that's quite enough to script it, everything is possible (and maybe buggy, but works.) It never use so much call as Px does, so increase these... hmm, dunno. As PPK said, make PtokaX first stable (I hope it will be that soon, then maybe my request will be added ::)), but he knows, what he want to add. Comfortable vs. less memory and CPU usage (and maybe stability?) [and yes, I know, Px isn't a 10 000 users hosting hubsoftware]