Jump to content

"ping" another client


Recommended Posts

Posted (edited)
10 minutes ago, Alakazizam said:

There's a muling script out there that you just give the bots the mules name and the mules client stays logged out until the bot needs the mule and then the mule logs in and does his thing.
What do I need to be looking into to learn how to have one client send another client some sort of notification like that?

Sockets could be a solution or some kind of backend with a rest api :)

Edited by Khaleesi
  • Like 1
Posted
1 hour ago, Alakazizam said:

I'll try to figure that all out, might be a bit out of my skillset at this time though. Sounds intimidating lol

It's not actually that complex.

 

You need a Webserver (HTTP or Sockets)

Server Code example: https://stackoverflow.com/questions/3732109/simple-http-server-in-java-using-only-java-se-api

Client you will need to find your own..

/GET - State (Server will either reply RequiresMule = True || False (Mules will use this)

- your mule will constantly get this page every 60s , most the time it will just be False (by default)

 

/POST - Update State (Your bots will use this) When a bot is ready to mule it will send a request which will set your RequiresMule = True so your mule knows to login.

 

 

Then you add logic to your osbot script to go to your designated place to mule and do it.

 

Then profit..?

  • Like 1
Posted
6 minutes ago, xcx said:

It's not actually that complex.

 

You need a Webserver (HTTP or Sockets)

Server Code example: https://stackoverflow.com/questions/3732109/simple-http-server-in-java-using-only-java-se-api

Client you will need to find your own..

/GET - State (Server will either reply RequiresMule = True || False (Mules will use this)

- your mule will constantly get this page every 60s , most the time it will just be False (by default)

 

/POST - Update State (Your bots will use this) When a bot is ready to mule it will send a request which will set your RequiresMule = True so your mule knows to login.

 

 

Then you add logic to your osbot script to go to your designated place to mule and do it.

 

Then profit..?

Thanks, I think I follow

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...