Beispiel #1
0
        public async Task Matchmake(params string[] users)
        {
            if (users.Length != 10 && users.Length != 20)
            {
                await ReplyAsync($"The command needs exactly 10 or 20 user nicknames, you have provided {users.Length}. Use double quotes for nicknames with special characters, such as \"Pepa Novak\".");
            }
            else
            {
                await ReplyAsync("Trying to matchmake, please give me a few seconds.");

                Matchmaking m = new Matchmaking();
                _ = m.BuildTeams(Bot.Instance, Context.Guild.Id, Context.Channel, users);
            }
        }