Skip to content

Commit

Permalink
Cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
XTigerHyperX committed Aug 23, 2022
1 parent c96e48b commit 9385a2a
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
16 changes: 3 additions & 13 deletions Minerva/Core/BasicCommands.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
using System;
using System.Linq;
using System.Threading.Tasks;
using Minerva.Models;
using Logger = Minerva.Core.Logger;


namespace Minerva.Core
{
Expand All @@ -15,18 +16,7 @@ public static async Task GrabOutfitsWithShopHistory()
{
if (cosmetic.HasShopHistory)
{
//PlaceHolder Bs until i create a logger
//var v = DateTime.Today - cosmetic.ShopHistory.Last();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("This outfit has a shop history!");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Name: " + cosmetic.Name);
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("ID: " + cosmetic.Id);
Console.WriteLine("Added in " + cosmetic.Added);
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine("This Cosmetic appeared in the shop " + cosmetic.ShopHistory.Count + " Times");
Console.ForegroundColor = ConsoleColor.White;
BasicLog.log(cosmetic);
}
}
}
Expand Down
24 changes: 24 additions & 0 deletions Minerva/Core/BasicLog.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using System;
using Minerva.Models;

namespace Minerva.Core
{
public class BasicLog
{
public static void log(Cosmetics cosmetic)
{
//PlaceHolder Bs until i create a logger
//var v = DateTime.Today - cosmetic.ShopHistory.Last();
Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine("This outfit has a shop history!");
Console.ForegroundColor = ConsoleColor.Red;
Console.WriteLine("Name: " + cosmetic.Name);
Console.ForegroundColor = ConsoleColor.White;
Console.WriteLine("ID: " + cosmetic.Id);
Console.WriteLine("Added in " + cosmetic.Added);
Console.ForegroundColor = ConsoleColor.Cyan;
Console.WriteLine("This Cosmetic appeared in the shop " + cosmetic.ShopHistory.Count + " Times");
Console.ForegroundColor = ConsoleColor.White;
}
}
}

0 comments on commit 9385a2a

Please sign in to comment.