public async Task ClearAllAsync() { if (!this.Manager.TryGet(this.Context.Channel.Id, out GameState game)) { return; } await ScoreHandler.GetScoreAsync(this.Context, this.Manager); if (!this.Manager.TryRemove(this.Context.Channel.Id)) { return; } game.ClearAll(); if (this.Context.Channel is IGuildChannel guildChannel) { Logger.Information( "Game ended in guild '{0}' in channel '{1}'", guildChannel.Guild.Name, guildChannel.Name); } await this.Context.Channel.SendMessageAsync($"Reading over. All stats cleared."); }
public Task GetGameReportAsync() { return(ScoreHandler.GetGameReportAsync(this.Context, this.Manager)); }