Created
February 8, 2011 21:08
-
-
Save JoshCheek/817250 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
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