예제 #1
0
        public async Task GenerateEloRatingsForGameAsync(int gameId)
        {
            var eloRatingService = new EloRatingService(_db);

            await Context.Channel.SendMessageAsync($"Generating Elo Ratings for Game {gameId}...");

            await eloRatingService.GenerateEloRatingsForGameAsync(gameId);

            await Context.Channel.SendMessageAsync("Done.");
        }
예제 #2
0
        public async Task GenerateEloRatingsForAllGamesAsync()
        {
            var eloRatingService = new EloRatingService(_db);

            await Context.Channel.SendMessageAsync("Generating Elo Ratings for All Games...");

            await eloRatingService.GenerateEloRatingsForAllGamesAsync(Context.Guild.Id, true);

            await Context.Channel.SendMessageAsync("Done.");
        }