Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
NullCode1337 committed Feb 26, 2022
1 parent db1d9af commit f341975
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions compiler/src/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -88,15 +88,17 @@ public static void Main(string[] args)

if (fileContent.Contains("# This file was auto-generated by NullRAT Compiler. DO NOT SHARE!"))
{
if (AnsiConsole.Confirm("\nA previous configuration file was detected, do you want to see it's contents?"))
Console.WriteLine();
if (AnsiConsole.Confirm("A previous configuration file was detected, do you want to see it's contents?"))
{
string[] splittedContent = fileContent.Split('\n');
for (int i = 0; i < splittedContent.Length; i++)
{
if (splittedContent[i].Contains("bot_token"))
{
string a = splittedContent[i].Split('=')[1].Replace('\"', ' ');
AnsiConsole.MarkupLine($"\nBot Token: {a.Trim()}");
Console.WriteLine();
AnsiConsole.MarkupLine($"Bot Token: {a.Trim()}");
}
else if (splittedContent[i].Contains("notification_channel"))
{
Expand All @@ -109,7 +111,8 @@ public static void Main(string[] args)
AnsiConsole.MarkupLine($"Server IDs:{c}");
}
}
if (AnsiConsole.Confirm("\nDo you want to use this configuration file?"))
Console.WriteLine();
if (AnsiConsole.Confirm("Do you want to use this configuration file?"))
{
goto CompileNullRAT;
}
Expand Down

0 comments on commit f341975

Please sign in to comment.