wm: irc-h2o-bot

Download patch

ref: fa731d2f6d93fe6224f369e9dc506b4f284c730d
parent: 48b10014b4dc26febc9eb5894156de6f8e6e2007
author: 0x4A4D00 <scorpion_rn@yahoo.com>
date: Thu Jul 20 21:52:09 EDT 2023

Ruby-IRC Installed and Tested

--- /dev/null
+++ b/ruby-irc.rb
@@ -1,0 +1,13 @@
+
+require 'IRC'
+
+bot = IRC.new("h2o", "irc.ircnow.org", "6667", "H2O")
+IRCEvent.add_callback('endofmotd') { |event| bot.add_channel('#fpc') }
+IRCEvent.add_callback('invite') { |event| bot.add_channel(event.message) }
+IRCEvent.add_callback('join') { |event|
+    bot.send_message(event.channel, "Hello #{event.from}")
+  IRCEvent.add_callback('privmsg') {|e|
+    puts e.message
+    }
+}
+bot.connect
\ No newline at end of file