UBot 3.1 Released – Create More Modular UBots

by Chris on December 1, 2009

ubot libraries

Seth just released a new version of UBot the other day, with some exciting new features. Most notable is the ability to create bot libraries. Basically, this means that UBot scripts can be constructed in a more modular fashion which allows you to reuse scripts between bots. To utilize this in your scripts, you use the sub command to divide your scripts into blocks of code. Subs can take parameters and return values and they are run with the Run sub command. To invoke subs in external Ubot scripts, you call the include function. This lets you choose subs from an external UBot script to call within your current script.

For example, lets say I want to create a social bookmarking bot. Instead of creating a giant script that contains functions for creating a new gmail account, bookmarking, and pinging, I would separate these pieces into their own sub modules. Designed properly, my pinging module can easily be reused in many of my UBot scripts. This has the potential to save me a bunch of time, and make my scripts much cleaner in general.

Hopefully everyone understands how powerful this is, as we now have the capability to create some very sophisticated bots. Perhaps a standard library of higher level modules that Seth or other UBot developers might develop will spring into existence and make creating useful bots that much easier. The possibilities are quite exciting. Anyway, to see how the UBot libraries work in action, check out the new tutorial videos that Seth just created and put up.

Share and Enjoy:
  • Print
  • Digg
  • Sphinn
  • del.icio.us
  • Facebook
  • Mixx
  • Google Bookmarks
  • Blogplay

Leave a Comment

Previous post:

Next post: