Skip to content

Instantly share code, notes, and snippets.

@mseymour
Created August 25, 2011 04:38
Show Gist options
  • Save mseymour/1169988 to your computer and use it in GitHub Desktop.
Save mseymour/1169988 to your computer and use it in GitHub Desktop.
A basic 'hello' plugin for Cinch 1.1.3
class MyCinchPlugin
include Cinch::Plugin
react_on :channel
match /hello/, method: :execute_hello
def execute_hello m
m.reply "Hello, #{m.user.nick}!"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment