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.

CleverBot Implementation for Scripts

Featured Replies

Library jar: http://www.mediafire.com/file/i5c5fkni41m78d9/ChatterBotLib.jar

 

Snippet:

ChatterBotFactory factory = new ChatterBotFactory();
ChatterBot bot = factory.create(ChatterBotType.CLEVERBOT);
ChatterBotSession botSession = bot.createSession();
String response = botSession.think("Text you want to respond to.");
System.out.println(response);

Sample:

465736b2e38bf12eae44c2290b7cf576.png

emote3.png Now if you want it for your scripts just put it into the onMessage maybe with some conditions about when it should respond / who it should respond to, etc.

 

I would run it on a separate thread incase the response takes a little while to complete.

Edited by LoudPacks

You are a God

 

Edit::

 

The bot is :kappa:

Edited by Aiban

Might want put it into a separate thread though? Pretty sure response times are a little while

EDIT: also its done before but turned out as a bad idea im pretty sure xD

Edited by House

  • Author

Might want put it into a separate thread though? Pretty sure response times are a little while

EDIT: also its done before but turned out as a bad idea im pretty sure xD

 

Yes that would be a good idea, usually its instant but sometimes it can take a few seconds.

Responses are not instant, I'm using the same API as you. CleverBot generates a limited set of responses for every message you give. I use a recursive algorithm with a variable depth to ensure a larger pool of messages. You should query CleverBot on a separate thread using a Callable<String> to provide a Future<String> for when the processing is done.

  • Author

Responses are not instant, I'm using the same API as you. CleverBot generates a limited set of responses for every message you give. I use a recursive algorithm with a variable depth to ensure a larger pool of messages. You should query CleverBot on a separate thread using a Callable<String> to provide a Future<String> for when the processing is done.

 

I mean I set up 2 bots talking to each other and response times were ~<= 1s apart (every so often it would take a couple seconds). It would still be a good idea though none the less. I would assume users would only be sending one message at a time. 

Edited by LoudPacks

Welcome to project Prometeus.

prometheus-2-blade-runner-sequel.jpg

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.