-
Notifications
You must be signed in to change notification settings - Fork 2
/
Program.cs
49 lines (42 loc) · 1.97 KB
/
Program.cs
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
43
44
45
46
47
48
49
using Lily.Strategies;
using System;
using System.Threading;
using System.Threading.Tasks;
namespace Lily
{
class Program
{
static ManualResetEvent _quitEvent = new ManualResetEvent(false);
static void Main(string[] args)
{
Console.WriteLine("Hi! I'm Lily, your professional dank player!");
Console.WriteLine("Enter your channel link (Promise I won't spam there): ");
var link = Console.ReadLine();
Console.WriteLine("Enter your authorization key (Trust me, I won't send it to the Chinese government!): ");
var authorizationKey = Console.ReadLine();
Console.WriteLine("To help me learn to find missing words, I might collect some data.");
Console.WriteLine("The data I collect does not include any usernames, passwords, or access tokens.");
Console.WriteLine("It only includes messages containing questions and answers sent by Dank Memer.");
Console.WriteLine("All data collected will be displayed in the console.");
Console.WriteLine("By hiring me, you agree to allow me collect these data.");
Console.WriteLine("Initializing my logic, please wait...");
var channel = new Channel(link, authorizationKey);
var machineLearning = new MachineLearning(channel);
var engine = new SpamEngine(channel, 7200000, 3600000);
engine.AddStrategy(new Work(machineLearning));
Thread.Sleep(10000);
engine.AddStrategy(new Beg());
Thread.Sleep(10000);
engine.AddStrategy(new Search());
Thread.Sleep(10000);
engine.AddStrategy(new Fish(machineLearning));
Thread.Sleep(10000);
engine.AddStrategy(new Hunt());
Thread.Sleep(10000);
engine.AddStrategy(new Highlow());
Thread.Sleep(10000);
engine.AddStrategy(new Deposit());
_quitEvent.WaitOne();
}
}
}