Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- %w{ rubygems IRC }.each { |r| require r }
- nick = 'SpankyBot'
- server = 'irc.freenode.net'
- port = '6667'
- realname = nick
- channels = %w{ #omglolserbar }
- bot = IRC.new(nick, server, port, realname)
- IRCEvent.add_callback 'endofmotd' do |event|
- channels.each { |c| bot.add_channel c }
- end
- IRCEvent.add_callback 'join' do |event|
- bot.send_action event.channel.to_s, 'dances like a monkey'
- end
- bot.connect
Add Comment
Please, Sign In to add comment