示例#1
0
文件: Program.cs 项目: 425show/425bot
 public ServiceClient(ObsClient obs)
 {
     _obs        = obs;
     _connection = new HubConnectionBuilder()
                   .WithUrl("https://425bot.azurewebsites.net/twitch")
                   .WithAutomaticReconnect()
                   .Build();
     this.Init().Wait();
 }
示例#2
0
文件: Program.cs 项目: 425show/425bot
        static void Main(string[] args)
        {
            var a = new ObsClient();

            a.Connect("ws://localhost:4444", "");
            // a.Mute("Christos A/V");
            var sr = new ServiceClient(a);

            Console.ReadLine();
        }