Пример #1
0
 public async Task Pickle(IGuildUser user)
 {
     try
     {
         System.Drawing.Image img = HTTPrequest.RequestImage(user.GetAvatarUrl());
         PhotoCommands.Picture("pickle", img, new Size(250, 250), new Point(404, 142));
         await Context.Channel.SendFileAsync("./Images/final.png");
     }
     catch (Exception)
     {
         await Context.Channel.SendMessageAsync("Avatar not found.");
     }
 }
Пример #2
0
 public async Task Computer(IGuildUser user)
 {
     try
     {
         System.Drawing.Image img = HTTPrequest.RequestImage(user.GetAvatarUrl());
         PhotoCommands.Picture("computer", img, new Size(235, 235), new Point(325, 20));
         await Context.Channel.SendFileAsync("./Images/final.png");
     }
     catch (Exception)
     {
         await Context.Channel.SendMessageAsync("Avatar not found");
     }
 }
Пример #3
0
 public async Task Toilet(IGuildUser user)
 {
     try
     {
         System.Drawing.Image img = HTTPrequest.RequestImage(user.GetAvatarUrl());
         PhotoCommands.Picture("toilet", img, new Size(50, 50), new Point(120, 65));
         await Context.Channel.SendFileAsync("./Images/final.png");
     }
     catch (Exception ex)
     {
         await Context.Channel.SendMessageAsync("Avatar not found." + ex.Message);
     }
 }