Jabber::Bot

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

Jabber::Bot Ranking & Summary

Advertisement

  • Rating:
  • License:
  • BSD License
  • Price:
  • FREE
  • Publisher Name:
  • Brett Stimmerman
  • Publisher web site:
  • http://socket7.net/software/jabber-bot

Jabber::Bot Tags


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-botBasic Usage#!/usr/bin/env rubyrequire 'rubygems'require 'jabber/bot'# Create a public Jabber::Botbot = Jabber::Bot.new( :jabber_id => 'bot@example.com', :password => 'password', :master => 'master@example.com', :is_public => true)# Give your bot a public commandbot.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 aliasbot.add_command( :syntax => 'puts ', :description => 'Write something to $stdout', :regex => /^putss+.+$/, :alias => ) do |sender, message| puts message "'#{message}' written to $stdout"end# Bring your new bot to lifebot.connectWhat'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.


Jabber::Bot Related Software