예제 #1
0
        public override async Task <string[]> Execute(CommandUsage command)
        {
            var genshinQuery = new GenshinQuery
            {
                Uid = command.MainParam
            };

            var schedule     = command.Options.Any("-Previous") ? 2 : 1;
            var genshinAbyss = await genshinQuery.QueryGenshinAbyss(schedule);

            return(new[]
            {
                $"UID{genshinQuery.Uid}的账号的第{genshinAbyss.ScheduleId}期深渊战绩",
                $"{genshinAbyss.StartTime.TimestampToDateTime():d}-{genshinAbyss.EndTime.TimestampToDateTime():d}",
                $"共战斗了{genshinAbyss.TotalBattleTimes}次,其中胜利{genshinAbyss.TotalWinTimes}次",
                $"最深抵达{genshinAbyss.MaxFloor},共获得{genshinAbyss.TotalStar}颗渊星",
                $"上场次数排行:{ParseAvatar(genshinAbyss.RevealRank.Take(4))}",
                $"击败数量排行:{ParseAvatar(genshinAbyss.DefeatRank.Take(4))}",
                $"最强一击:{ParseAvatar(genshinAbyss.DamageRank.Take(1), "")}",
                $"受到伤害排行:{ParseAvatar(genshinAbyss.TakeDamageRank.Take(4), "")}",
                $"元素战技释放数排行:{ParseAvatar(genshinAbyss.NormalSkillRank.Take(4))}",
                $"元素爆发释放数排行:{ParseAvatar(genshinAbyss.EnergySkillRank.Take(4))}"
                + $"{ParseOptions(genshinAbyss, command)}",
            });
        }
예제 #2
0
        public override async Task <string[]> Execute(CommandUsage command)
        {
            var genshinQuery = new GenshinQuery
            {
                Uid = command.MainParam
            };
            var genshinIndex = await genshinQuery.QueryGenshinIndex();

            return(new[]
            {
                $"UID{genshinQuery.Uid}的账号",
                $"共有{genshinIndex.Stats.Avatars}个角色{ParseAvatars(genshinIndex, command)}",
                $"活跃了{genshinIndex.Stats.ActiveDays}天",
                $"取得了{genshinIndex.Stats.Achievements}个成就",
                $"找到了{genshinIndex.Stats.AnemoCulus}个风神瞳和{genshinIndex.Stats.GeoCulus}个岩神瞳",
                $"解锁了{genshinIndex.Stats.Waypoints}个传送点和{genshinIndex.Stats.Domains}个秘境",
                $"开启了{genshinIndex.Stats.LuxuriousChests}个华丽的宝箱",
                $"{genshinIndex.Stats.PreciousChests}个珍贵的宝箱",
                $"{genshinIndex.Stats.ExquisiteChests}个精致的宝箱",
                $"{genshinIndex.Stats.CommonChests}个普通的宝箱",
                $"凹到了深渊{genshinIndex.Stats.SpiralAbyss}"
            });
        }