Skip to content

Instantly share code, notes, and snippets.

@mseymour
Created May 9, 2012 03:18
Show Gist options
  • Save mseymour/2641524 to your computer and use it in GitHub Desktop.
Save mseymour/2641524 to your computer and use it in GitHub Desktop.
Basic "!hello" plugin
module Cinch
module Plugins
class HelloBot
include Cinch::Plugin
set(:plugin_name => "Hello Bot", :help => 'Responds on "!hello"')
match "hello"
def execute(m)
m.reply "Hello #{m.user.nick}, my name is #{@bot.nick}!"
end
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment