Exemple #1
0
    public void start()
    {
        if (started)
        {
            return;
        }

        bool isCaveSound = System.Environment.MachineName.Equals(clientSound, StringComparison.OrdinalIgnoreCase);

        started = (Config.Instance.IsStandalone || isCaveSound);
        if (started)
        {
            string[] muted;
            if (isCaveSound)
            {
                muted = new string[] { clientMic };
            }
            else
            {
                muted = new string[] { };
            }

            tsc = new TSClient(ip, port, "", muted);
            tsc.start();

            Logger.Log("Voice started");
        }
    }
Exemple #2
0
 public void EventShit()
 {
     TSClient.Subscribe <TextMessage>(data =>
     {
         //CommandStuff.CommandManager.ExecuteCommand(data);
     });
 }
        public List <Lutador> listarLutadores()
        {
            List <Lutador> lutadores = new List <Lutador>();

            var t = Task.Run(() => TSClient.GetAllFighters());

            t.Wait();

            lutadores = t.Result;

            return(lutadores);
        }
Exemple #4
0
        public async Task StartBot(int sid)
        {
            await TSClient.UseServer(sid);

            await TSClient.ChangeNickName(this.Name);

            Who = await TSClient.WhoAmI();

            //await TSClient.RegisterServerNotification();
            await TSClient.RegisterChannelNotification(Who.ChannelId);

            await TSClient.RegisterTextChannelNotification();

            await TSClient.RegisterTextPrivateNotification();

            await TSClient.RegisterTextServerNotification();
        }