Sending commands to Ptokax from the outside, a method ?
 

Sending commands to Ptokax from the outside, a method ?

Started by zef, 06 December, 2003, 12:05:57

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

zef

hello all,  
first thank you for this forum, there are a lot of interesting things  
 
here is, I am currently on DC Hub 1.0.25 and I test ptokax  
I think to change definitely for ptokax but some points block me, one in particular.  
 
under dc neo-modus hub, a general hub password existed (Bot pass), that permitted to jump the phase of identification of the hub, and to place some orders to the hub without having need to exchange keys of the protocol ($MyINFO $ALL & $GetINFO useless) i give this pass and a nick, and it is sufficient for by example, to send some orders to the hub by socks with php code (I have made the code that makes that). and another example is sending chat text to the main chat in the hub, from a web page why not.  
I didn't succeed in making a similar thing under ptokax because I didn't find a general password to give. And my tests of sending orders to the hub in php with normal sequences failed ($Key $ValidateNick...), the AXDC plugin of SBSoftEA (v0.02) doesn't seem work either, I am immediately disconnected with it and the TD 0.3.2.6.  
 
I don't know how to do, if you have some information I would be very happy:)
thks
\'Shaggy, bearded, they braved the storm,  
They hit the route, to hunt the mammoth,  
Kill it, you have it, It was the law of the Gallic\'
sign?: un Gaulois loin de sa hutte...

Troubadour

could be done in the future with the Ptokax Multihub server (I guess).
Just have to wait for it.
Maybe it is possible if Multihubserver supplied a script editor for distance changes (so someone could help out by logging in and script along with you).

-Troubadour-
Regards,

Troubadour

** Guardian Forum **

hubaddy:   nederfun.no-ip.com

zef

thks for your quick answer Troubadour,
i think too that the MultiHubServer could be the way for doing this things.
but if i can't reproduce my specific development, i think to keep the good old dc hub ;)
\'Shaggy, bearded, they braved the storm,  
They hit the route, to hunt the mammoth,  
Kill it, you have it, It was the law of the Gallic\'
sign?: un Gaulois loin de sa hutte...

plop

QuoteOriginally posted by zef
hello all,  
first thank you for this forum, there are a lot of interesting things  
 
here is, I am currently on DC Hub 1.0.25 and I test ptokax  
I think to change definitely for ptokax but some points block me, one in particular.  
 
under dc neo-modus hub, a general hub password existed (Bot pass), that permitted to jump the phase of identification of the hub, and to place some orders to the hub without having need to exchange keys of the protocol ($MyINFO $ALL & $GetINFO useless) i give this pass and a nick, and it is sufficient for by example, to send some orders to the hub by socks with php code (I have made the code that makes that). and another example is sending chat text to the main chat in the hub, from a web page why not.  
I didn't succeed in making a similar thing under ptokax because I didn't find a general password to give. And my tests of sending orders to the hub in php with normal sequences failed ($Key $ValidateNick...), the AXDC plugin of SBSoftEA (v0.02) doesn't seem work either, I am immediately disconnected with it and the TD 0.3.2.6.  
 
I don't know how to do, if you have some information I would be very happy:)
thks
for axdc you need a special script 2 make it able 2 stay in the hub, this because is sends some data on login witch isn't part of the original dc protocol.
opening socks is posible but you have 2 think closely before you start using it.
simply because the hub freezes while it's open, so if you use it close it as fast as posible.
i don't know what you want 2 send from the website and if it's running on the same computer but if the hub and webserver are on the same compie there are other way's 2 transfer data from and 2 the hub/site.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

pHaTTy

btw for chatting from a webpage, make a new user account in ptokax and give it a pass, and there you have it, as long as it works like a client and can connect then it wil be just the same, dc hub automatically had the settings, but if chatting from webpage why have it as a bot, why not just a user account log into hub wth webpage ;)

l8rr,,

-phatz
Resistance is futile!

zef

QuoteOriginally posted by plop
for axdc you need a special script 2 make it able 2 stay in the hub, this because is sends some data on login witch isn't part of the original dc protocol.
do you know where to find such code ? :D
i am not enough familiarized with the ptokax'protocol to create such a script

<< opening socks is posible but you have 2 think closely before you start using it.
simply because the hub freezes while it's open, so if you use it close it as fast as posible. >>

boring  :( i'll call speedy gonzales

<< i don't know what you want 2 send from the website and if it's running on the same computer but if the hub and webserver are on the same compie there are other way's 2 transfer data from and 2 the hub/site. >>

 in fact, the hub and the webserver are distant in all case, it is the whole problem. What I send currently are notifications of new posts made in a forum, with a message sent in the hub (a message in the main chat with the title of the thread, author ...). It functions currently very well with dchub neomodus, so i want do the same thing with ptokax  8)

QuoteOriginally posted by (uk-kingdom)pH?tt?
btw for chatting from a webpage, make a new user account in ptokax and give it a pass, and there you have it, as long as it works like a client and can connect then it wil be just the same, dc hub automatically had the settings, but if chatting from webpage why have it as a bot, why not just a user account log into hub wth webpage ;)
i don't understand, do you want to say that with typing the hub's adress of my ptokax in a web browser i'm able to login directly in the hub  ?

thks for your attention  ;)
\'Shaggy, bearded, they braved the storm,  
They hit the route, to hunt the mammoth,  
Kill it, you have it, It was the law of the Gallic\'
sign?: un Gaulois loin de sa hutte...

plop

check here for axdc.
if you can make the forum send email on new stuff wich your hubserver can recieve you can use the .eml files 2 get the notification in the hub chat.
i like the idea, should find me some time 2 check this better.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

zef

:)

thks for the link, it works now with AXDC  :D

QuoteOriginally posted by plop  
if you can make the forum send email on new stuff wich your hubserver can recieve you can use the .eml files 2 get the notification in the hub chat.
a little complicated I think;) especially since I have several hosters that doesn't have all a mail server on their machine ;) but I had not thought such a solution
\'Shaggy, bearded, they braved the storm,  
They hit the route, to hunt the mammoth,  
Kill it, you have it, It was the law of the Gallic\'
sign?: un Gaulois loin de sa hutte...

plop

yw.

just a crazy creative guy here.
thought about it a bit more and mdaemon has scripting support.
with that you can make txt files out of the email wich you can save into the ptokax folder.
if you monitor that folder from the bot you can simply send the text file 2 the chat and delete the file when done.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

zef

hehe, interesting ;)

in fact, my system is actually this one (I hope that it present an interest for you):

when a new thread is posted on particular sections of my forum, the subject/author and the name of the section is sent to the hub (by socks).
in the same way, i populate a txt file on the web server with a new line and the same information sent to the hub.

when the hub received the information from the forum, it displays the information in the main chat, and read the updated remote txt file on the web server ( i use the Microsoft.XMLHTTP object) and finaly put the entire txt file in a variable.

Next, my users can run a command-bot in the hub to know the latest thread posted in a pv, and so the lastest releases in the hub.

your idea of server mail could be too a ftp, and a soft like FileNotify (http://www.xtware.com/) could make action...
\'Shaggy, bearded, they braved the storm,  
They hit the route, to hunt the mammoth,  
Kill it, you have it, It was the law of the Gallic\'
sign?: un Gaulois loin de sa hutte...

plop

<----- brain running wild of cool idea's.  lol
a ftp is indeed a good idea, make the webserver save the txt file there and have the bot check the filesize.
if that changes it has 2 show/do something.
if you don't wanne show a msg on every release you can use that filenotify 2 start a script behind the scene's 2 modify the releases txt file.
this would be the best idea as it doesn't put any stress @ all on the hub.
btw what soft do you use on the webserver, were using phpnuke.
if you can make the module/block wich sends the stuff 2 the ftp then i'll build the bot part for the hub.

plop
http://www.plop.nl lua scripts/howto\'s.
http://www.thegoldenangel.net
http://www.vikingshub.com
http://www.lua.org

>>----> he who fights hatred with hatred, drives the spreading of hatred <----<<

zef

:)
i like the little tool as filenotify, so small but so strong

I mentioned filenotify, but honestly I don't see how running a ptokax bot and especially what to run ;)

from plop
<>


for the web part, i use a - licenced :D - vbulletin board (my favorite)

from plop
<>

i think I could make it, a little change with the protocol ;)
\'Shaggy, bearded, they braved the storm,  
They hit the route, to hunt the mammoth,  
Kill it, you have it, It was the law of the Gallic\'
sign?: un Gaulois loin de sa hutte...

SMF spam blocked by CleanTalk