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.

Auto chat responder

Featured Replies

5 minutes ago, sirskitzo said:

@taraz Yeah, obvious I understand this array but I mean I don't understand the code itself :P

i understand i did only post half off the code

14 minutes ago, sirskitzo said:

@taraz Ahh alright thanks :)

Hope you script anything like this :P will make it fun :P

Filter text and check if a message contains your name.

  • 1 month later...
On 2/15/2018 at 12:11 PM, Juggles said:

Bots aren't human, they can't  know if "what ya doing" and "what r u doing?" are the same thing. 

You have to program both of them so it knows 

Wrong.

If (message.contains("what") || message.contains("wat")) {

     phraseCount++;

}

if (message.contains(" r ") || message.contains(" are ")) {

  phraseCount++;

}

if (message.contains(" you ") || message.contains(" ya ") || message.contains(" u ")) {

    phraseCount++;

}

if (message.contains(" doin") {//lack of space after would also cover "doing"

phraseCount++;

}



if (phraseCount >= 3) {//incase they just say "wat u doin"

  //ACTION HERE

}

 

Obviously there's a billion ways better to carry this function out but i'd thought to keep it simple to explain the point i guess.

Edited by I am not a

  • Night locked this topic
Guest
This topic is now closed to further replies.

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.