Beispiel #1
0
 public async Task Pick(int amount = 1)
 {
     if (amount >= 1 && amount <= 100)
     {
         EmbedBuilder embed = new EmbedBuilder
         {
             Color = Color.Green
         };
         LevelUser user = new LevelUser();
         user.Load(Context.User.Id);
         Random rand = new Random();
         string path = Program.levelpath + Context.User.Id + ".xml";
         user.GainXpPick(embed, Context.User);
         user.Save(Context.User.Id);
         await ReplyAsync("", false, Ranking.Picker(embed, path, Context.User.Id.ToString(), amount, Program.baginv).Build());
     }
     else
     {
         await ReplyAsync("Sorry but I can't pick that much stuf");
     }
 }