예제 #1
0
        public static async Task ListCharacters(IUser user, IMessageChannel chan, string prefix = null)
        {
            var chars = BotUser.GetCharFiles(user.Id);

            if (chars.Count < 1)
            {
                await chan.SendMessageAsync($"No characters found, use ``{prefix}New Character characternamehere`` to create characters");
            }
            else
            {
                string       list = ArrayM.ToString(chars, Environment.NewLine);
                EmbedBuilder em   = DUtils.BuildEmbed(user.Username + "'s Characters",
                                                      list, null, default, DUtils.NewField("Commands", "`Load charactername` & `Delete charactername`"));
예제 #2
0
        public async Task TestAreaFloorTest(string tables)
        {
            var l = tables.Split(';');

            List <string>[] table = new List <string> [l.Length];
            for (int i = 0; i < l.Length; i++)
            {
                table[i] = new List <string>(l[i].Split(','));
            }
            string       lootb = ArrayM.ToString(table);
            string       loota = "To do"; //ArrayM.ToString(ArrayM.FloorEffect(table, floor, maxfloor));
            EmbedBuilder test  = new EmbedBuilder();

            test.WithTitle("Area Floor Effect Test");
            test.AddField("Table", "Before:" + Environment.NewLine + lootb
                          + Environment.NewLine +
                          "After:" + Environment.NewLine + loota);
            await ReplyAsync(embed : test.Build());
        }