Пример #1
0
        public async Task GetWalletPanelAsync(OldAccount a, Server s, EmbedBuilder e)
        {
            AnalyzerOld wallet = Context.Account.Analytics;
            ulong       spent  = wallet.Expended;
            ulong       held   = wallet.MaxHeld;

            Emoji  bal     = EmojiIndex.Balance;
            string debt    = $"{EmojiIndex.Debt.Pack(a)}{Context.Account.Debt.ToPlaceValue().MarkdownBold()}";
            string balance = $"{bal.Pack(a)}{Context.Account.Balance.ToPlaceValue().MarkdownBold()}";
            string sp      = $"{bal.Pack(a)}{spent.ToPlaceValue().MarkdownBold()}";
            string h       = $"{bal.Pack(a)}{held.ToPlaceValue().MarkdownBold()}";

            string title       = "Wallet Analytics";
            string d1          = $"Balance | {balance}";
            string d2          = $"Debt | {debt}";
            string d3          = $"Expended | {sp}";
            string d4          = $"Most Held | {h}";
            string description = $"{d1}\n{d2}\n{d3}\n{d4}";

            e.Title       = title;
            e.Description = description;

            await ReplyAsync(embed : e.Build());

            return;
        }
Пример #2
0
        public EmbedBuilder Generate(OldAccount a)
        {
            EmbedBuilder e       = new EmbedBuilder();
            Emoji        icon    = Type.Icon();
            string       user    = $"{Author.Name}";
            string       subject = $"Subject: {Subject.MarkdownBold()}";
            string       title   = $"{icon.Pack(a)} | {user} | {Command}\n{subject}";
            string       footer  = $"Case: {Id}";

            EmbedFooterBuilder f = new EmbedFooterBuilder();

            f.WithText(footer);

            e.WithColor(EmbedData.GetColor("error"));
            e.WithTitle(title);
            e.WithDescription(Content);
            e.WithFooter(f);

            return(e);
        }