Example #1
0
        public async Task SetItems(CommandContext ctx, string builder)
        {
            await ctx.RespondAsync("เดี๋ยวไปหยิบปากกามาเขียนแปบนะ");

            var result = await ItemsDB.AddItem(builder);

            if (result == true)
            {
                await ctx.RespondAsync("เขียนเพิ่มรายการเรียบร้อยแล้วนะ");
            }
            else
            {
                await ctx.RespondAsync("ปากกาหมึกหมด ไว้มาใหม่ทีหลังนะ");
            }
        }