basic bot using isaac
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
require 'rubygems' | |
require 'isaac' | |
config do |c| | |
c.nick = "somefanfrickentasticbot" | |
c.server = "irc.freenode.net" | |
c.port = 6667 | |
end | |
on :connect do | |
join "#somefanfrickentasticchannel" | |
end | |
on :channel, /.*/ do | |
msg channel, "Got your message #{nick} (#{match[0]})" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment