コード例 #1
0
ファイル: AdminCommands.cs プロジェクト: davewiebe/GameBot
        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
ファイル: AdminCommands.cs プロジェクト: davewiebe/GameBot
        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.");
        }