Ejemplo n.º 1
0
        public async Task PushAvaUbUpdate(int id)
        {
            if (Context.Message.Author.Id != 195567858133106697)
            {
                return;
            }
            await ReplyAsync("Starting push!");

            await AvastarObject.UpdateUBs(id);

            await ReplyAsync("Done!");
        }
Ejemplo n.º 2
0
        public async Task PushAvaUbUpdate(int first, int last)
        {
            if (Context.Message.Author.Id != 195567858133106697)
            {
                return;
            }
            for (int i = first; i <= last; i++)
            {
                await ReplyAsync($"Starting push for #{i}!");

                await AvastarObject.UpdateUBs(i);
                await ReplyAsync($"Done pushing #{i}!");
            }
        }