Skip to content

Instantly share code, notes, and snippets.

@prussiap
Last active August 29, 2015 14:00
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 prussiap/11068736 to your computer and use it in GitHub Desktop.
Save prussiap/11068736 to your computer and use it in GitHub Desktop.
require 'cinch'
bot = Cinch::Bot.new do
configure do |c|
c.nick = "hello_there"
c.server = "irc.freenode.org"
c.channels = ["#hacklab"]
end
on :message, "hello" do |m|
m.reply "Hello, #{m.user.nick}"
end
on :message, "foo" do |m|
m.reply "Bar, Be more original #{m.user.nick}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment