Example #1
0
        public async Task OverallEmojiStats(bool reloadCache = false)
        {
            var builder = new EmbedBuilder()
                          .WithTitle("Analiza")
                          .WithDescription("Przeanalizowano: 0 wiadomości\n" +
                                           $"Pozostało kanałów: {Context.Guild.Channels.Count}");
            var status = await ReplyAsync(embed : builder.Build());

            var cache = await StatsHelper.GetCache(Context.Guild, status, reloadCache);

            await StatsHelper.PrintStats(Context.Guild.Emotes, cache._emotesUsage, "_messages", "Wiadomości", Context.Channel);

            await StatsHelper.PrintStats(Context.Guild.Emotes, cache._emotesUsage, "_embeds", "Embedy", Context.Channel);

            await StatsHelper.PrintStats(Context.Guild.Emotes, cache._emotesUsage, "_reactions", "Reakcje", Context.Channel);

            await StatsHelper.PrintTotal(Context.Guild.Emotes, cache._emotesUsage, Context.Channel);
        }