Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

XMPP bot so easy happy fun times!

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 examples
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 .document
Octocat-spinner-32 .gitignore
Octocat-spinner-32 .rspec
Octocat-spinner-32 Gemfile
Octocat-spinner-32 Gemfile.lock
Octocat-spinner-32 LICENSE.txt
Octocat-spinner-32 README.md
Octocat-spinner-32 Rakefile
Octocat-spinner-32 VERSION
Octocat-spinner-32 happy_fun_time_bot.gemspec
README.md

Happy fun time bot

Have happy fun times with this configurable XMPP bot! It is SO easy to use, especially for Hipchat!

Lets take a look!

#!/usr/bin/env ruby

require 'rubygems'
require 'happy_fun_time_bot'

@bot = HappyFunTimeBot.new(:jid => "xxxx@chat.hipchat.com", 
                           :nick => "HappyFunTime Bot", 
                           :room => "123_your_talk_chan@conf.hipchat.com", 
                           :password => "xxxx")

@bot.add_responder('heybot') do |from, args|
  "Oh HAI #{from}!!!"
end

@bot.run!
Bob: !heybot what's up?
HappyFunTime Bot:  Oh HAI Bob!!!

So many IdeazzZz!!

Add responders to insert random images of dogs in costumes!

Bob: !findimage dog costume
HappyFunTime Bot: Here ya go!

Kick off a build!

Bob: !build_the_app
HappyFunTime Bot: All tests PASSED!

Deploy your app!

Bob: !deploy
HappyFunTime Bot: Deploying now!

Bot creation Options:

  • :jid - Required.
  • :nick - The nickname for the bot to use.
  • :room - Required. The room to enter.
  • :password - The bot's password.
  • :command_regex - The regular expression to test for a command. The default is a ! followed by a word. e.g. /^!(.+)$/

Copyright

Copyright (c) 2011 Grant Ammons. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.