Skip to content

Instantly share code, notes, and snippets.

@JoshCheek
Created February 8, 2011 21:08
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 JoshCheek/817250 to your computer and use it in GitHub Desktop.
Save JoshCheek/817250 to your computer and use it in GitHub Desktop.
require 'isaac'
configure do |c|
c.nick = "ButtBot"
c.server = "irc.freenode.net"
# c.port = 6667
end
on :connect do
join "#wsu-acm"
end
on :channel do
word = message.split.shuffle.filter{|item| item =~ /\w+/}[0].match( /^[aeiou]+(?<tail>.*)/ )
tail = word[:tail] || ""
msg channel , "More like butt#{tail}. amirite?"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment