Created
July 18, 2010 23:34
-
-
Save ymendel/480817 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
#!/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