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.

Best way to get a bot's email from inside script?

Featured Replies

Is there any built in way to get the login name (email) of the current bot from inside a script? I did a cursory search of the forums and API and couldn't find anything.

I wrote a custom logger that writes to a new file every time a script is run. I'd like to be able to include the account email of the bot in the name of each log file so I know which account each log file is from. Also in the future, I may use the email to communicate status information about a bot to a server, and a bot's email seems like a good primary key.

6 minutes ago, Naked said:

No.

Add it as a script parameter.

This. Allowing scripters to access e-mails that easily would be a huge security issue.

1 hour ago, PlumpRump said:

Is there any built in way to get the login name (email) of the current bot from inside a script? I did a cursory search of the forums and API and couldn't find anything.

I wrote a custom logger that writes to a new file every time a script is run. I'd like to be able to include the account email of the bot in the name of each log file so I know which account each log file is from. Also in the future, I may use the email to communicate status information about a bot to a server, and a bot's email seems like a good primary key.

getBot().getUsername();

  • Author
6 minutes ago, Chris said:

getBot().getUsername();

Everyone else in this thread is wrong. This is exactly what I was looking for. Thanks!

6 minutes ago, PlumpRump said:

Everyone else in this thread is wrong. This is exactly what I was looking for. Thanks!

they are noob skripors thats y

11 minutes ago, HeyImJamie said:

Pls tell me there's no getBot().getPassword() method

There is dawg 🙏

2 hours ago, PlumpRump said:

Everyone else in this thread is wrong. This is exactly what I was looking for. Thanks!

y u ask for wrong thing

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.