Esempio n. 1
0
        private static void Client_OnLoggedIn(DiscordSocketClient client, LoginEventArgs args)
        {
            Console.WriteLine($"                                      Logged in as {client.GetClientUser()}\n\n", System.Drawing.Color.Cyan);
            Console.WriteLine("Which HypeSquad badge would you prefer. Brilliance, Bravery, Balance, Rotate, or None?");
            var chosen = Console.ReadLine();

            if (chosen.ToUpper() == "BRILLIANCE")
            {
                client.User.SetHypesquad(Hypesquad.Brilliance);
            }
            else if (chosen.ToUpper() == "BRAVERY")
            {
                client.User.SetHypesquad(Hypesquad.Bravery);
            }
            else if (chosen.ToUpper() == "BALANCE")
            {
                client.User.SetHypesquad(Hypesquad.Balance);
            }
            else if (chosen.ToUpper() == "NONE")
            {
                client.User.SetHypesquad(Hypesquad.None);
            }
            else if (chosen.ToUpper() == "ROTATE")
            {
                while (true)
                {
                    Thread.Sleep(15000);
                    client.User.SetHypesquad(Hypesquad.Balance);
                    Thread.Sleep(17000);
                    client.User.SetHypesquad(Hypesquad.Brilliance);
                    Thread.Sleep(5);
                    Thread.Sleep(15000);
                    client.User.SetHypesquad(Hypesquad.Bravery);
                }
            }
            else
            {
                Console.WriteLine("Nevermind then.");
            }

            Console.WriteLine("Finished Hypesquad Badge Update.", System.Drawing.Color.LightGreen);


            Thread.Sleep(100);
            Console.WriteLine("DONE! You Can Now Close The Program", System.Drawing.Color.LightCoral);
        }