Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using TS3QueryLib.Core;
- namespace Scotty
- {
- class Program
- {
- static void Main(string[] args)
- {
- Console.Title = "Scotty";
- string Server_IP = "127.0.0.1";
- Console.WriteLine("Connecting To: {0}", Server_IP);
- TS3QueryLib.Core.Server.QueryRunner Client = new TS3QueryLib.Core.Server.QueryRunner(new SyncTcpDispatcher("127.0.0.1", 10011));
- Client.Login("serveradmin", "1");
- Client.SelectVirtualServerById(1);
- Client.SendGlobalMessage("Scotty Is Here Bitches.");
- Client.RegisterForNotifications(TS3QueryLib.Core.Server.Entities.ServerNotifyRegisterEvent.Channel);
- Client.Notifications.ChannelMessageReceived += Notifications_ChannelMessageReceived1;
- Console.Read();
- }
- private static void Notifications_ChannelMessageReceived1(object sender, TS3QueryLib.Core.Server.Notification.EventArgs.MessageReceivedEventArgs e)
- {
- throw new NotImplementedException();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement