Skip to content

Instantly share code, notes, and snippets.

@ymendel
Created July 18, 2010 23:34
Show Gist options
  • Save ymendel/480817 to your computer and use it in GitHub Desktop.
Save ymendel/480817 to your computer and use it in GitHub Desktop.
#!/usr/bin/env ruby
$:.unshift(File.expand_path('~/dev/projects/others/cinch/lib/'))
require 'cinch'
bot = Cinch::Base.new
bot.options.server = 'irc.freenode.org'
bot.options.nick = 'cardroid'
bot.options.channels = %w[#namaste_bitches]
bot.track_names
bot.on :privmsg do |m|
p bot.channel_names[m.channel]
end
bot.run
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment