Skip to content

Instantly share code, notes, and snippets.

@mkroman
Created July 28, 2010 07:34
Show Gist options
  • Save mkroman/493698 to your computer and use it in GitHub Desktop.
Save mkroman/493698 to your computer and use it in GitHub Desktop.
# encoding: utf-8
config do |x|
x.name = "example"
x.author = "Mikkel Kroman <[email protected]>"
x.version = "1.0.0"
bind :privmsg, :on_message
end
def on_message message
puts "#{message.user.nickname} says #{message.body}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment