-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
56 lines (46 loc) · 1.62 KB
/
Program.cs
File metadata and controls
56 lines (46 loc) · 1.62 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
namespace SkinGenBot;
class Program
{
public static int Counter = 1;
public static bool DebugMode, ConsoleMode, EndMainThread;
public static string Version = "v1.0.2";
public static void Main()
{
Init();
ConsoleApp.Run();
if (EndMainThread) return;
Bot.MainAsync().GetAwaiter().GetResult();
}
private static void Init()
{
switch (ConsoleApp.Input($"One Of Us Skin Generator {Version}\n(D) Debug Bot Mode\n(C) Console Mode\n(B) Bot Mode\n-> ").ToLower())
{
case "d":
DebugMode = true;
break;
case "c":
ConsoleMode = true;
return;
}
Bot.InitJson();
}
public static string GetPath(string hex)
{
string tempPath = Environment.CurrentDirectory + $"\\SkinGen_{hex}.png";
if (DebugMode) Console.WriteLine($"DEBUG: GetPath called, directory: {tempPath}");
return tempPath;
}
private string hexpath = GetPath("#123456");
public static string GetPathSplitGen(string hex1, string hex2)
{
string tempPath = Environment.CurrentDirectory + $"\\SplitGen_{hex1}_{hex2}.png";
if (DebugMode) Console.WriteLine($"DEBUG: GetPathSplitGen called, directory: {tempPath}");
return tempPath;
}
public static string GetPathGradient(string hex1, string hex2)
{
string tempPath = Environment.CurrentDirectory + $"\\GradientGen_{hex1}_{hex2}.png";
if (DebugMode) Console.WriteLine($"DEBUG: GetPathGradient called, directory: {tempPath}");
return tempPath;
}
}