public async Task PlayerList()
        {
            List <Player> participants = await RandomizationHelper.GetPlayersInTourney((await DatabaseHelper.GetLatestTourneyAsync()).ID);

            string participantString = "Discord Username - Showdown Username\n\n";

            foreach (Player player in participants)
            {
                participantString += $"{player.DiscordName} - {player.ShowdownName}\n";
            }

            await Context.Channel.SendMessageAsync($"**Full Player List:**\n```{participantString}```");
        }
Пример #2
0
        public async Task StartTourney(int tid)
        {
            await Context.Channel.SendMessageAsync("", false, new EmbedBuilder()
            {
                Title = "Starting Tourney...", Color = Color.LightOrange, Description = $"Starting tourney with id {tid} please wait a moment."
            });

            if (await(await RandomizationHelper.GetPlayersInTourney(tid)).GenerateRandomBrackets(tid))
            {
                await Context.Channel.SendMessageAsync("", false, new EmbedBuilder()
                {
                    Title = "Tourney Started", Color = Color.Green, Description = $"The tourney has begun. Posting brackets..."
                });
            }
            else
            {
                await Context.Channel.SendMessageAsync("", false, new EmbedBuilder()
                {
                    Title = "Tourney Failed to Start", Color = Color.DarkRed, Description = $"Error. Please contact an admin."
                });
            }
        }