Ruby IRC bot don't works.
Posted
by JavaNoob
on Stack Overflow
See other posts from Stack Overflow
or by JavaNoob
Published on 2010-03-01T13:25:31Z
Indexed on
2010/04/13
16:33 UTC
Read the original article
Hit count: 685
require "socket"
server = "irc.rizon.net"
port = "6667"
nick = "Ruby IRC Bot"
channel = "#0x40"
s = TCPSocket.open(server, port)
s.print("USER Testing", 0)
s.print("NICK #{nick}", 0)
s.print("JOIN #{channel}", 0)
This irc bot don't connect to the IRC server, What are i'm doing wrong?
© Stack Overflow or respective owner