Skip to content

Instantly share code, notes, and snippets.

@mkroman
Created July 23, 2010 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mkroman/487545 to your computer and use it in GitHub Desktop.
Save mkroman/487545 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
Extensions.autoload
end
on :message do |user, channel, message|
if user.nickname == "mk" and message == ".reload"
Extensions.reload
channel.say "> Extensions successfully reloaded." ^ :cyan
end
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