class Program { static void Main(string[] args) { while(true) { String datum = DateTime.Now.ToString(); WebClient client = new WebClient(); string content = client.DownloadString("https://www.mujegpalya.hu/hu/jegyek"); if (content.Contains("<strong>Hamarosan...</strong>")) { Console.WriteLine($"[{DateTime.Now}]Ticket: Soon...."); } else { Console.WriteLine($"[{DateTime.Now}] Ticket: Available"); //send me messenger/instagram/telegram text or any kind of notification? Thread.Sleep(2000); Environment.Exit(0); } Thread.Sleep(10000); } } }}
class Palya{ public static string palya1 = @"\x1b[31m################\x1b[0m# ## ## \u001B[1m\u001B[33mK\u001B[39m\u001B[22m ## ## ###################"; public static string palya2 =@"\x1b[36m################\x1b[0m# ## ## ## ## ###################"; public static void PalyaBetoltes() { Console.WriteLine("\x1b[36mSzoveg\x1b[0m"); Console.Write(palya1); }}
public static string map1 = @"################### ## ## K ## ## ###################";