Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

CLI In java freezes bot

Featured Replies

                    String botCommand = "java -jar \"Osbot 2.5.31.jar\" " + "-login "
                            + osbotLogin + " -bot " + bot + " -script " + script + " -world " + world
                            + (extraParams != null ? " " + extraParams : "");

                    Process pr = rt.exec(botCommand);
                    BufferedReader input = new BufferedReader(new InputStreamReader(pr.getInputStream()));
                    String line;
                    while ((line = input.readLine()) != null) {
                        //if (line.equalsIgnoreCase("Starting script..."))
                       //     break;
                        System.out.println(line);
                    }

 

UPDATE:

The reason why I want this is to keep track of bots on "-allow lowresource" mode. Is there a better way?

 

 

 

 

Old post:

When I run this, the bot client starts and stops before the login handler comes in. I run this from eclipse and when I disconnect the client from eclipse, it continues.

 

if I add the lines that I commented out, then the script does continue. So this while loop is the cause. How do I make this work and still be able to get the output?

 

Thanks in advance

Edited by BobSmokey
formatting

You're trying to get the ouput of the script/bot right? I tried this myself too and it didn't work. There is an option to open a socket with the CLI -debug porthere command and you can listen to this port with for example Python to get the output and store it somewhere. That's how far I got. 

import socket

# creates socket object
s = socket.socket(socket.AF_INET,
                  socket.SOCK_STREAM)

host = socket.gethostname() # or just use (host = '')
port = 5005

s.connect((host, port))

tm = s.recv(1024) # msg can only be 1024 bytes long

s.close()
print("the time we got from the server is %s" % tm.decode('ascii'))

input("enter")

Not sure how to continue, I gave up because I didn't need it anymore after all.

Edited by dormic

  • Author

Is there any other way to keep track of bots on "-allow lowresource" mode?

15 hours ago, BobSmokey said:

Is there any other way to keep track of bots on "-allow lowresource" mode?

Use the debug flag on CLI.

 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.