Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bot.rb
- require "socket"
- server = "i.r.cx"
- port = "6667"
- nick = "bot"
- channel = "#eric"
- ms1 = "396"
- s = TCPSocket.open(server, port)
- msg1 = s.gets
- print("addr: ", s.addr.join(":"), "\n")
- print("peer: ", s.peeraddr.join(":"), "\n")
- s.puts "USER testing 0 * Testing"
- s.puts "NICK #{nick}"
- s.puts "JOIN #{channel}"
- s.puts "PRIVMSG #{channel} :Hello from IRB Bot"
- until s.eof? do
- msg1 = s.gets
- puts msg1
- end
- The log:
- :seawater.srv.i.r.cx NOTICE Auth :*** Found your hostname (ool-44c1c338.dyn.optonline.net) -- cached
- :seawater.srv.i.r.cx 451 JOIN :You have not registered
- :seawater.srv.i.r.cx 451 PRIVMSG :You have not registered
- :seawater.srv.i.r.cx NOTICE Auth :Welcome to IRCx!
- :seawater.srv.i.r.cx 001 bot :Welcome to the IRCx IRC Network bot!testing@ool-44c1c338.dyn.optonline.net
- :seawater.srv.i.r.cx 002 bot :Your host is seawater.srv.i.r.cx, running version InspIRCd-2.0
- :seawater.srv.i.r.cx 003 bot :This server was created 01:02:50 Jan 21 2013
- :seawater.srv.i.r.cx 004 bot seawater.srv.i.r.cx InspIRCd-2.0 BRScgikorswx ACDFJKLMOPQRSTXabcdefhijklmnopqrstuvz FJLXabdefhjkloqv
- :seawater.srv.i.r.cx 005 bot AWAYLEN=200 CALLERID=g CASEMAPPING= CHANMODES=Xbe,k,FJLdfjl,ACDKMOPQRSTcimnprstuz CHANNELLEN=64 CHANTYPES=# CHARSET=ascii ELIST=MU EXCEPTS=e EXTBAN=,ACOQRSTUcjmprsz FNC KICKLEN=255 MAP :are supported by this server
- :seawater.srv.i.r.cx 005 bot MAXBANS=60 MAXCHANNELS=20 MAXPARA=32 MAXTARGETS=20 MODES=20 NAMESX NETWORK=IRCx NICKLEN=31 OPERLOG OVERRIDE PREFIX=(qaohv)~&@%+ REMOVE SSL=[::]:6697 :are supported by this server
- :seawater.srv.i.r.cx 005 bot STARTTLS STATUSMSG=~&@%+ TOPICLEN=307 UHNAMES VBANLIST WALLCHOPS WALLVOICES WATCH=32 :are supported by this server
- :seawater.srv.i.r.cx 042 bot 407AAABDP :your unique ID
- :seawater.srv.i.r.cx 375 bot :seawater.srv.i.r.cx message of the day
- :seawater.srv.i.r.cx 376 bot :End of message of the day.
- :seawater.srv.i.r.cx 251 bot :There are 15 users and 18 invisible on 5 servers
- :seawater.srv.i.r.cx 252 bot 18 :operator(s) online
- :seawater.srv.i.r.cx 254 bot 19 :channels formed
- :seawater.srv.i.r.cx 255 bot :I have 6 clients and 1 servers
- :seawater.srv.i.r.cx 265 bot :Current Local Users: 6 Max: 9
- :seawater.srv.i.r.cx 266 bot :Current Global Users: 33 Max: 38
- :seawater.srv.i.r.cx 396 bot zoom-gf3.3du.pfcnen.IP :is now your displayed host
- :bot!testing@zoom-gf3.3du.pfcnen.IP MODE bot +x
- :nickserv!nickserv@services.int NOTICE bot :Welcome to IRCx, bot! Here on IRCx, we provide services to enable the registration of nicknames and channels! For details, type /msg nickserv help and /msg chanserv help.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement