Skip 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 paramaters - Splitting by a comma

Featured Replies

1. OSBot Version: 2.4.83

 

2. A description of the issue. Include relevant logs..

"," (comma) can't be used to split getParameters() as stated in the CLI image 
f55417d9d199e2ca9dd1db4ffef2f3f1.png

 

Whenever I use this:

java -jar "osbot 2.4.83.jar" -login userpass -bot user:pass:1234 -debug 5005 -script test:10,20,30

getParameters() would only return "10" as a parameter and I would not be able to acces 20 and 30.

If I use test:10;20;30 it works fine and I can split it on the ";"

 

3. Are you receiving any errors in the client canvas or the logger? 

--

 

4. How can you replicate the issue?

Start script from cli options and split the params by a "," and print out the getParameters() function.

 

5. Has this issue persisted through multiple versions? If so, how far back?

Yes, 2.4.82 and 2.4.83

It works with other delimiters like ";" , only the comma seems to pass only the first parameter into the script.

We all need to have the inspiration not to use the delimiters which already separate the CLI arguments such as ",", ":" and "-"

I like "=" or "|" but those are just personal preferences :doge:

  • Developer

We all need to have the inspiration not to use the delimiters which already separate the CLI arguments such as ",", ":" and "-"

I like "=" or "|" but those are just personal preferences doge.png

 

That's exactly why I used a semicolon, since it was not used in the cli options.

It's whatever you like I guess.

Good catch though, I'll update the documentation in the interim while I work on a fix in the future.

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.