-
-
Save mkroman/6a2aa7e86cad8717541f to your computer and use it in GitHub Desktop.
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
def initialize(server1, server2) | |
@echo = IRC::Client.new(*server1) | |
@listen = IRC::Client.new(*server2) | |
def listen.message_received(nick, channel, message, *args) | |
if channel == "#Pre" | |
@echo.puts("PRIVMSG #{@echo.channel} :#{message}") | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment