Skip to content

Instantly share code, notes, and snippets.

@mkroman
Created July 23, 2010 11:07
Show Gist options
  • Save mkroman/487290 to your computer and use it in GitHub Desktop.
Save mkroman/487290 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
# encoding: utf-8
$:.unshift '~/Projects/DSI/lib'
require 'dsi'
require 'dsi/extensions'
options = {
hostname: 'irc.phora.net',
nickname: 'anura'
}
DSI.connect options do
on :start do
Extension.autoload
end
on :message do |user, channel, message|
channel.say "#{user.name}: mboy.. I wanna take pictures of you.."
end
on :ready do
join :phora
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment