Skip to content

Instantly share code, notes, and snippets.

@zlu
Created May 19, 2011 19:21
Show Gist options
  • Save zlu/981506 to your computer and use it in GitHub Desktop.
Save zlu/981506 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$:.unshift(File.join(File.dirname(__FILE__), "..", "lib"))
require 'rubygems'
require File.join(File.expand_path('../../lib', __FILE__), 'connfu')
Connfu.setup "usera@localhost", "1"
class AnswerExample
include Connfu
on :offer do
answer
say('hello. this is connfu')
end
end
AnswerExample.new
Connfu.start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment