Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Communications > Chat

    Jabber::Bot 1.1.0

    Download button

    No screenshots available
    Downloads: 855  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.2/5)
    15 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Brett Stimmerman | More programs
    BSD License / FREE
    April 3rd, 2007, 21:52 GMT
    ROOT / Communications / Chat

     Read user reviews (0)  Refer to a friend  Subscribe

    Jabber::Bot description

    Jabber::Bot project makes it simple to create and command your own Jabber bot with little fuss.

    Jabber::Bot project makes it simple to create and command your own Jabber bot with little fuss. By adding custom commands powered by regular expressions to your bot's repertoire, you and your new bot will be able to accomplish nearly anything.

    Requirements:

    · Ruby 1.8.4+
    · Jabber::Simple 0.8.7+

    Installation:

    The latest version of Jabber::Bot is available via RubyGems:

    gem install jabber-bot

    Basic Usage

    #!/usr/bin/env ruby
    require 'rubygems'
    require 'jabber/bot'

    # Create a public Jabber::Bot
    bot = Jabber::Bot.new(
    :jabber_id => 'bot@example.com',
    :password => 'password',
    :master => 'master@example.com',
    :is_public => true
    )

    # Give your bot a public command
    bot.add_command(
    :syntax => 'rand',
    :description => 'Produce a random number from 0 to 10',
    :regex => /^rand$/,
    :is_public => true
    ) { rand(10).to_s }

    # Give your bot a private command with an alias
    bot.add_command(
    :syntax => 'puts ',
    :description => 'Write something to $stdout',
    :regex => /^putss+.+$/,
    :alias => [
    :syntax => 'p ',
    :regex => /^ps+.+$/
    ]
    ) do |sender, message|
    puts message
    "'#{message}' written to $stdout"
    end

    # Bring your new bot to life
    bot.connect

    What's New in This Release:

    · This version supports Jabber presence, status message, and priority.
    · A built-in "help" command now accepts an optional < command > argument.



    Product's homepage

      


    TAGS:

    jabber bot | chat bot | Perl library | Jabber::Bot | jabber | bot

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM