Advertisement
Guest User

Untitled

a guest
Oct 1st, 2017
385
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.14 KB | None | 0 0
  1. IRC irc = new IRC();
  2.             irc.Self = new IRCUser
  3.                            {
  4.                                Username = "UnkwnTech|Netduino",
  5.                                RealName = "Arron",
  6.                                EmailAddress = "arron@arronchapman.com",
  7.                                Password = "Nope"
  8.                            };
  9.  
  10.  
  11.             irc.Server = new IRCServer("irc.freenode.net", 6667, true);
  12.  
  13.             irc.Server.Recieve += new IRCServer.DataRecieved(this.DataHandler);
  14.  
  15.             Thread.Sleep(750);
  16.             irc.Connect();
  17.             Thread.Sleep(750);
  18.             irc.Identify();
  19.  
  20.             Thread.Sleep(750);
  21.             irc.Join("#netduinos");
  22.             Thread.Sleep(750);
  23.             Debug.Print(irc.Server.Send("PRIVMSG #netduinos Hello I'm a Netduino!\n"));
  24.             Thread.Sleep(3000);
  25.  
  26.             irc.Server.Send("PRIVMSG oz__ HI!\n");
  27.             irc.Server.Send("PRIVMSG UnkwnTech|PC HI!\n");
  28.             irc.Server.Send("PRIVMSG dhon_ HI!\n");
  29.             irc.Server.Send("PRIVMSG Not-ChrisWalker HI\n");
  30.  
  31.             //irc.Dispose();
  32.             Thread.Sleep(Timeout.Infinite);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement