using System; using System.Collections.Generic; using System.Net; namespace franz.tests { class Program { static void Main(string[] args) { Console.WriteLine("Hello World, Im' " + Dns.GetHostName()); Telefranz.Configure("tester", "alloces:9092", new System.Collections.Generic.List(){"a!"}); Telefranz.Instance.addHandler(r => { Console.WriteLine(r); }); Telefranz.Instance.addHandler((ec) => { if(ec.command == "a!"){ Console.WriteLine($"a! command executing! {string.Join("; ", ec.args)}"); } }); Telefranz.Instance.ProduceMessage(new gray_messages.global.sound_off()); System.Threading.Thread.Sleep(15000); Telefranz.Instance.ProduceMessage(new gray_messages.directorial.execute_command(){ command= "a!", args= new List(){"param 1", "param 2"} }); System.Threading.Thread.Sleep(5000); Console.WriteLine("k."); } } }