Created
May 9, 2012 03:18
-
-
Save mseymour/2641524 to your computer and use it in GitHub Desktop.
Basic "!hello" plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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