Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Net;
- using System.Net.Sockets;
- using System.Text;
- using System.Threading.Tasks;
- using System.IO;
- namespace SimplyIRC
- {
- class Client
- {
- public static string pServer = "irc.fyrechat.net";
- private static string pNickname = "SparseNet";
- private static string pUser = "USER SparseBot * :This shit is hard";
- private static string pChannel = "#vana";
- private static short pPort = 6667;
- private TcpClient pClient;
- public NetworkStream ClientStream;
- public static StreamReader IrcReader;
- public static StreamWriter IrcWriter;
- public void ServerConnect()
- {
- PingSystem ping = new PingSystem();
- ping.Ping();
- pClient = new TcpClient(pServer, pPort);
- ClientStream = pClient.GetStream();
- IrcReader = new StreamReader(ClientStream);
- IrcWriter = new StreamWriter(ClientStream);
- IrcWriter.WriteLine(pUser);
- IrcWriter.Flush();
- IrcWriter.WriteLine("NICK" + pNickname);
- IrcWriter.Flush();
- IrcWriter.WriteLine("JOIN" + pChannel);
- IrcWriter.Flush();
- IrcWriter.WriteLine("NOTICE" + "FUCK YES BITCHES, GUESS WHOS IN");
- IrcWriter.Flush();
- IrcWriter.Close();
- while (true)
- {
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment