public InformationModule(DiscordSocketClient client, DataService data, Random random, WooCommerce wooCommerce)
 {
     _client      = client;
     _dataService = data;
     _random      = random;
     _wooCommerce = wooCommerce;
 }
Beispiel #2
0
 private static void wp()
 {
     string[] urla = XmlTools.GetUrls.Where(x => x.Contains("/products/") && x.Contains("/pumps/") && x.Length > x.IndexOf("/pumps/") + 7).Select(x => x).Skip(14).Take(3).ToArray();
     foreach (string url in urla)
     {
         LProduct product = new LProduct();
         using (LeyboldHelper leybold = new LeyboldHelper())
         {
             product = leybold.GetProduct(url);
         }
         using (WooCommerce woo = new WooCommerce())
         {
             woo.createPost(product);
         }
     }
 }