-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathProgram.cs
More file actions
42 lines (38 loc) · 1.36 KB
/
Copy pathProgram.cs
File metadata and controls
42 lines (38 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using XenForo_Bot_AntiLeech.LogStuff;
using XenForo_Bot_AntiLeech.WebStuff;
using XenForo_Bot_AntiLeech.XenForoStuff;
namespace XenForo_Bot_AntiLeech
{
public class Program
{
public static void Main(string[] args)
{
Console.WindowWidth = 160;
while (!WebFunction.Connect())
{
Logger.log("Tentative de connection...", LogLevel.Error);
Task.Run(async () =>
{
await Task.Delay(3000);
}).GetAwaiter().GetResult();
}
Logger.log("Connecté !", LogLevel.Info);
Logger.log("Recherche des threads Hot", LogLevel.Info);
var th = WebFunction.GetThreadHot();
Logger.log("Threads Hot trouvé", th, LogLevel.Debug);
List<Leecher> Leecher = new List<Leecher>();
Parallel.ForEach(th, ds =>
{
Leecher.AddRange(WebFunction.GetLeechers($"{ds.Id}"));
});
Logger.log("Leecher détecté", Leecher, LogLevel.Debug);
Logger.log("Reported Leecher", WebFunction.AnalyseProfile(Leecher), LogLevel.Debug, true);
Console.ReadLine();
}
}
}