Guest User

Untitled

a guest
Dec 15th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Net;
  4. using System.Net.Sockets;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. using System.IO;
  8.  
  9. namespace SimplyIRC
  10. {
  11. class Client
  12. {
  13. public static string pServer = "irc.fyrechat.net";
  14. private static string pNickname = "SparseNet";
  15. private static string pUser = "USER SparseBot * :This shit is hard";
  16. private static string pChannel = "#vana";
  17. private static short pPort = 6667;
  18. private TcpClient pClient;
  19. public NetworkStream ClientStream;
  20. public static StreamReader IrcReader;
  21. public static StreamWriter IrcWriter;
  22.  
  23.  
  24. public void ServerConnect()
  25. {
  26. PingSystem ping = new PingSystem();
  27. ping.Ping();
  28. pClient = new TcpClient(pServer, pPort);
  29. ClientStream = pClient.GetStream();
  30. IrcReader = new StreamReader(ClientStream);
  31. IrcWriter = new StreamWriter(ClientStream);
  32. IrcWriter.WriteLine(pUser);
  33. IrcWriter.Flush();
  34. IrcWriter.WriteLine("NICK" + pNickname);
  35. IrcWriter.Flush();
  36. IrcWriter.WriteLine("JOIN" + pChannel);
  37. IrcWriter.Flush();
  38. IrcWriter.WriteLine("NOTICE" + "FUCK YES BITCHES, GUESS WHOS IN");
  39. IrcWriter.Flush();
  40. IrcWriter.Close();
  41. while (true)
  42. {
  43.  
  44. }
  45.  
  46. }
  47. }
  48. }
Add Comment
Please, Sign In to add comment