Advertisement
ericpi

Untitled

Jan 24th, 2013
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.57 KB | None | 0 0
  1. Bot.rb
  2. require "socket"
  3.  
  4. server = "i.r.cx"
  5. port = "6667"
  6. nick = "bot"
  7. channel = "#eric"
  8. ms1 = "396"
  9. s = TCPSocket.open(server, port)
  10. msg1 = s.gets
  11. print("addr: ", s.addr.join(":"), "\n")
  12. print("peer: ", s.peeraddr.join(":"), "\n")
  13. s.puts "USER testing 0 * Testing"
  14. s.puts "NICK #{nick}"
  15. s.puts "JOIN #{channel}"
  16. s.puts "PRIVMSG #{channel} :Hello from IRB Bot"
  17. until s.eof? do
  18. msg1 = s.gets
  19. puts msg1
  20. end
  21.  
  22.  
  23. The log:
  24.  
  25. :seawater.srv.i.r.cx NOTICE Auth :*** Found your hostname (ool-44c1c338.dyn.optonline.net) -- cached
  26. :seawater.srv.i.r.cx 451 JOIN :You have not registered
  27. :seawater.srv.i.r.cx 451 PRIVMSG :You have not registered
  28. :seawater.srv.i.r.cx NOTICE Auth :Welcome to IRCx!
  29. :seawater.srv.i.r.cx 001 bot :Welcome to the IRCx IRC Network bot!testing@ool-44c1c338.dyn.optonline.net
  30. :seawater.srv.i.r.cx 002 bot :Your host is seawater.srv.i.r.cx, running version InspIRCd-2.0
  31. :seawater.srv.i.r.cx 003 bot :This server was created 01:02:50 Jan 21 2013
  32. :seawater.srv.i.r.cx 004 bot seawater.srv.i.r.cx InspIRCd-2.0 BRScgikorswx ACDFJKLMOPQRSTXabcdefhijklmnopqrstuvz FJLXabdefhjkloqv
  33. :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
  34. :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
  35. :seawater.srv.i.r.cx 005 bot STARTTLS STATUSMSG=~&@%+ TOPICLEN=307 UHNAMES VBANLIST WALLCHOPS WALLVOICES WATCH=32 :are supported by this server
  36. :seawater.srv.i.r.cx 042 bot 407AAABDP :your unique ID
  37. :seawater.srv.i.r.cx 375 bot :seawater.srv.i.r.cx message of the day
  38. :seawater.srv.i.r.cx 376 bot :End of message of the day.
  39. :seawater.srv.i.r.cx 251 bot :There are 15 users and 18 invisible on 5 servers
  40. :seawater.srv.i.r.cx 252 bot 18 :operator(s) online
  41. :seawater.srv.i.r.cx 254 bot 19 :channels formed
  42. :seawater.srv.i.r.cx 255 bot :I have 6 clients and 1 servers
  43. :seawater.srv.i.r.cx 265 bot :Current Local Users: 6 Max: 9
  44. :seawater.srv.i.r.cx 266 bot :Current Global Users: 33 Max: 38
  45. :seawater.srv.i.r.cx 396 bot zoom-gf3.3du.pfcnen.IP :is now your displayed host
  46. :bot!testing@zoom-gf3.3du.pfcnen.IP MODE bot +x
  47. :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