Exemplo n.º 1
0
        // Reset a game
        public static async Task ResetGame(SocketCommandContext context, string game)
        {
            if (!await Utilities.CheckForSuperadmin(context, context.User))
            {
                return;
            }
            else if (game == "trivia")
            {
                await Utilities.SendEmbed(context.Channel, "MiniGames", $"{context.User.Mention} has reset Trivia.", Colors.Green, "", "");

                Trivia.ResetTrivia();
            }
            else if (game == "rr")
            {
                await Utilities.SendEmbed(context.Channel, "MiniGames", $"{context.User.Mention} has reset Russian Roulette.", Colors.Green, "", "");

                RR.Reset();
            }
            else if (game == "ttt")
            {
                await Utilities.SendEmbed(context.Channel, "MiniGames", $"{context.User.Mention} has reset Tic-Tac-Toe.", Colors.Green, "", "");

                ResetTTT();
            }
            else if (game == "ng")
            {
                await Utilities.SendEmbed(context.Channel, "MiniGames", $"{context.User.Mention} has reset the Number Guess game.", Colors.Green, "", "");

                NG.Reset();
            }
            else if (game == "wsi")
            {
                await Utilities.SendEmbed(context.Channel, "MiniGames", $"{context.User.Mention} has reset the Who Said It.", Colors.Green, "", "");

                WSI.Reset();
            }
            else if (game == "")
            {
                await Utilities.PrintError(context.Channel, "Please specify a game to reset.");
            }
            else
            {
                await Utilities.PrintError(context.Channel, $"I was unable to find the `{game}` game.\n\nAvailable games to reset:\nTrivia\n`!trivia`\n\nTic-Tac-Toe\n`!ttt`\n\nNumber Guess\n`!play ng`\n\nRussian Roulette\n`!rr`");
            }
        }