This commit is contained in:
@@ -62,15 +62,6 @@ namespace PluginManager.Others
|
||||
else
|
||||
Console.Write(progress.ToString() + $"{speed} {unit}/s ");
|
||||
|
||||
//if (r == false)
|
||||
//Update(progress, true);
|
||||
|
||||
}
|
||||
|
||||
public void Finish()
|
||||
{
|
||||
Console.Write("\r{0} {1}%", Message, 100);
|
||||
Console.WriteLine();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,13 +123,9 @@ namespace PluginManager.Others
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Write text using colors: &g - green, &r - red, &b - blue, &m - magenta, &c - Clear
|
||||
/// </summary>
|
||||
/// <param name="text"></param>
|
||||
/// <param name="appendNewLine"></param>
|
||||
public static void WriteColorText(string text, bool appendNewLine = true)
|
||||
{
|
||||
|
||||
string[] words = text.Split(' ');
|
||||
ConsoleColor fg = Console.ForegroundColor;
|
||||
Dictionary<string, ConsoleColor> colors = new Dictionary<string, ConsoleColor>()
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
/// A list with all errors
|
||||
/// </summary>
|
||||
public enum Error
|
||||
{ UNKNOWN_ERROR, GUILD_NOT_FOUND, STREAM_NOT_FOUND }
|
||||
{ UNKNOWN_ERROR, GUILD_NOT_FOUND, STREAM_NOT_FOUND, INVALID_USER, INVALID_CHANNEL, INVALID_PERMISSIONS }
|
||||
|
||||
/// <summary>
|
||||
/// The output log type
|
||||
|
||||
@@ -162,7 +162,7 @@ namespace PluginManager.Others
|
||||
/// Get the Operating system you are runnin on
|
||||
/// </summary>
|
||||
/// <returns>An Operating system</returns>
|
||||
public static OperatingSystem GetOperatinSystem()
|
||||
public static OperatingSystem GetOperatingSystem()
|
||||
{
|
||||
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Windows)) return OperatingSystem.WINDOWS;
|
||||
if (System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(System.Runtime.InteropServices.OSPlatform.Linux)) return OperatingSystem.LINUX;
|
||||
|
||||
Reference in New Issue
Block a user