Advertisement
Guest User

Untitled

a guest
Jul 27th, 2015
334
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.06 KB | None | 0 0
  1. using System;
  2. using TS3QueryLib.Core;
  3.  
  4. namespace Scotty
  5. {
  6.     class Program
  7.     {
  8.  
  9.         static void Main(string[] args)
  10.         {
  11.             Console.Title = "Scotty";
  12.             string Server_IP = "127.0.0.1";
  13.             Console.WriteLine("Connecting To: {0}", Server_IP);
  14.             TS3QueryLib.Core.Server.QueryRunner Client = new TS3QueryLib.Core.Server.QueryRunner(new SyncTcpDispatcher("127.0.0.1", 10011));
  15.             Client.Login("serveradmin", "1");
  16.             Client.SelectVirtualServerById(1);
  17.             Client.SendGlobalMessage("Scotty Is Here Bitches.");
  18.             Client.RegisterForNotifications(TS3QueryLib.Core.Server.Entities.ServerNotifyRegisterEvent.Channel);
  19.             Client.Notifications.ChannelMessageReceived += Notifications_ChannelMessageReceived1;
  20.             Console.Read();
  21.         }
  22.  
  23.         private static void Notifications_ChannelMessageReceived1(object sender, TS3QueryLib.Core.Server.Notification.EventArgs.MessageReceivedEventArgs e)
  24.         {
  25.             throw new NotImplementedException();
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement