Update .gitignore

This commit is contained in:
Stone-Red-Code
2021-08-06 21:49:27 +02:00
162 changed files with 38331 additions and 146 deletions
-1
View File
@@ -5,7 +5,6 @@
# DiscordCLI-specific files # DiscordCLI-specific files
token.txt token.txt
src/DiscordCLI/bin/Debug
# User-specific files # User-specific files
*.rsuser *.rsuser
Binary file not shown.
Binary file not shown.
Binary file not shown.
+57 -31
View File
@@ -47,7 +47,7 @@ namespace DiscordCLI
protected async Task ListGuildChannels(string args) protected async Task ListGuildChannels(string args)
{ {
IReadOnlyCollection<DiscordChannel> textChannels; IReadOnlyCollection<DiscordChannel> discordChannels;
DiscordGuild guild; DiscordGuild guild;
if (args != null) if (args != null)
@@ -75,21 +75,28 @@ namespace DiscordCLI
} }
GlobalInformation.currentGuild = guild; GlobalInformation.currentGuild = guild;
textChannels = guild.Channels; discordChannels = guild.Channels;
int index = 1; int index = 0;
foreach (DiscordChannel channel in textChannels) foreach (DiscordChannel channel in discordChannels.OrderBy(x => x.Position))
{ {
switch (channel.Type) if (channel.Type == ChannelType.Category)
{ {
case ChannelType.Category: Console.WriteLine();
//Console.WriteLine($"[{channel.Name}]"); Console.WriteLine($"--- {channel.Name} ---");
break; foreach (DiscordChannel child in channel.Children.OrderBy(x => x.Position))
{
if (child.Type == ChannelType.Text)
{
index++;
case ChannelType.Text: Console.WriteLine($"{index}. {child.Name}");
Console.WriteLine($"{index}. {channel.Name}"); }
index++; else
break; {
ConsoleExt.WriteLine($"-. {child.Name}", ConsoleColor.DarkGray);
}
}
} }
} }
@@ -108,11 +115,11 @@ namespace DiscordCLI
if (int.TryParse(args, out int ind)) if (int.TryParse(args, out int ind))
{ {
textChannel = GlobalInformation.currentGuild?.Channels.Where(x => x.Type == ChannelType.Text).ElementAtOrDefault(ind - 1); textChannel = GlobalInformation.currentGuild?.Channels.Where(x => x.Type == ChannelType.Text).OrderBy(x => x.Position).ElementAtOrDefault(ind - 1);
} }
else else
{ {
textChannel = GlobalInformation.currentGuild?.Channels.Where(x => x.Type == ChannelType.Text).FirstOrDefault(x => x.Name == args); textChannel = GlobalInformation.currentGuild?.Channels.Where(x => x.Type == ChannelType.Text).OrderBy(x => x.Position).FirstOrDefault(x => x.Name == args);
} }
GlobalInformation.currentTextChannel = textChannel; GlobalInformation.currentTextChannel = textChannel;
@@ -127,8 +134,9 @@ namespace DiscordCLI
{ {
foreach (DiscordMessage message in (textChannel.GetMessagesAsync(10).Result).Reverse()) foreach (DiscordMessage message in (textChannel.GetMessagesAsync(10).Result).Reverse())
{ {
await outputManager.WriteMessage(message, textChannel, GlobalInformation.currentGuild, false); await outputManager.WriteMessage(message, textChannel, false);
} }
Console.CursorTop--;
} }
catch (Exception ex) catch (Exception ex)
{ {
@@ -166,12 +174,12 @@ namespace DiscordCLI
{ {
foreach (DiscordMessage message in (await dmChannel.GetMessagesAsync(10)).Reverse()) foreach (DiscordMessage message in (await dmChannel.GetMessagesAsync(10)).Reverse())
{ {
await outputManager.WriteMessage(message, dmChannel, GlobalInformation.currentGuild, false); await outputManager.WriteMessage(message, dmChannel, false);
} }
} }
catch (Exception ex) catch (Exception ex)
{ {
ConsoleExt.WriteLine(ex, ConsoleColor.Red); ConsoleExt.WriteLine(ex.Message, ConsoleColor.Red);
GlobalInformation.currentTextChannel = null; GlobalInformation.currentTextChannel = null;
} }
} }
@@ -198,23 +206,25 @@ namespace DiscordCLI
return; return;
} }
DiscordUser discordUser = GlobalInformation.currentGuild?.Members?.FirstOrDefault(user => user.Username.EqualsIgnoreSpacesAndCase(userName)); DiscordUser discordUser = await GetDiscordUser(userName);
if (discordUser is null) string status = discordUser?.Presence?.Status.ToString();
status ??= "N/A";
if (discordUser is DiscordMember discordMember)
{ {
discordUser = GlobalInformation.currentGuild?.Members?.FirstOrDefault(user => $"{user.Username}#{user.Discriminator}".EqualsIgnoreSpacesAndCase(userName)); string infoString =
$"Username: {discordMember.Username}#{discordMember.Discriminator}" + Environment.NewLine +
$"Nickname: {discordMember.Nickname ?? "N/A"}" + Environment.NewLine +
$"Roles: {string.Join(", ", discordMember.Roles.Select(x => x.Name))}" + Environment.NewLine +
$"Status: {status}" + Environment.NewLine +
$"Created at: {discordMember.CreationTimestamp}" + Environment.NewLine +
$"ID: {discordMember.Id}" + Environment.NewLine +
$"Bot: {discordMember.IsBot}";
Console.WriteLine(infoString);
} }
else if (discordUser is not null)
if (discordUser is null)
{ {
discordUser = GlobalInformation.currentGuild?.Members?.FirstOrDefault(user => $"{user.Nickname}".EqualsIgnoreSpacesAndCase(userName));
}
if (discordUser is not null)
{
string status = discordUser.Presence?.Status.ToString();
status ??= "N/A";
string infoString = string infoString =
$"Username: {discordUser.Username}#{discordUser.Discriminator}" + Environment.NewLine + $"Username: {discordUser.Username}#{discordUser.Discriminator}" + Environment.NewLine +
$"Status: {status}" + Environment.NewLine + $"Status: {status}" + Environment.NewLine +
@@ -228,7 +238,23 @@ namespace DiscordCLI
ConsoleExt.WriteLine("User not found!", ConsoleColor.Red); ConsoleExt.WriteLine("User not found!", ConsoleColor.Red);
} }
await Task.CompletedTask; async Task<DiscordUser> GetDiscordUser(string name)
{
DiscordUser discordUser = GlobalInformation.currentGuild?.Members?.FirstOrDefault(user => user.Username.EqualsIgnoreSpacesAndCase(userName));
discordUser ??= GlobalInformation.currentGuild?.Members?.FirstOrDefault(user => $"{user.Username}#{user.Discriminator}".EqualsIgnoreSpacesAndCase(userName));
discordUser ??= GlobalInformation.currentGuild?.Members?.FirstOrDefault(user => $"{user.Username}".EqualsIgnoreSpacesAndCase(userName));
discordUser ??= GlobalInformation.currentGuild?.Members?.FirstOrDefault(user => $"{user.Nickname}".EqualsIgnoreSpacesAndCase(userName));
if (discordUser is null)
{
IReadOnlyList<DiscordUser> users = await GlobalInformation.currentGuild.GetAllMembersAsync();
discordUser ??= users.FirstOrDefault(user => user.Username.EqualsIgnoreSpacesAndCase(userName));
discordUser ??= users.FirstOrDefault(user => $"{user.Username}#{user.Discriminator}".EqualsIgnoreSpacesAndCase(userName));
discordUser ??= users.FirstOrDefault(user => $"{user.Username}".EqualsIgnoreSpacesAndCase(userName));
}
return discordUser;
}
} }
protected async Task Clear(string args) protected async Task Clear(string args)
+23 -10
View File
@@ -51,6 +51,14 @@ namespace DiscordCLI
/// <returns>exit bool and write override bool</returns> /// <returns>exit bool and write override bool</returns>
public async Task<(bool, bool)> CheckCommand(string rawInput) public async Task<(bool, bool)> CheckCommand(string rawInput)
{ {
string input = rawInput.Trim().ToLower().Replace('\n', '\0');
if (string.IsNullOrWhiteSpace(input.StartsWith(InputManager.Prefix) ? input.Remove(0, 1) : input))
{
Console.CursorTop--;
return (false, false);
}
cooldown++; cooldown++;
if (cooldown > 1) if (cooldown > 1)
@@ -61,21 +69,26 @@ namespace DiscordCLI
return (false, true); return (false, true);
} }
string input = rawInput.Trim().ToLower().Replace('\n', '\0'); if (input.StartsWith(InputManager.Prefix))
if (string.IsNullOrWhiteSpace(input))
return (false, false);
if (input.StartsWith(InputManager.prefix))
{ {
input = input.Remove(0, 1); input = input.Remove(0, 1);
} }
else if (GlobalInformation.currentTextChannel != null) else if (GlobalInformation.currentTextChannel != null)
{ {
cooldown++; cooldown++;
Console.Write("\r" + new string(' ', Console.WindowWidth));
await GlobalInformation.currentTextChannel.SendMessageAsync(rawInput); try
return (false, false); {
await GlobalInformation.currentTextChannel.SendMessageAsync(rawInput);
Console.CursorTop--;
Console.Write("\r" + new string(' ', Console.WindowWidth));
}
catch (Exception ex)
{
Console.WriteLine();
ConsoleExt.WriteLine(ex.Message, ConsoleColor.Red);
}
return (false, true);
} }
Console.WriteLine(); Console.WriteLine();
@@ -88,7 +101,7 @@ namespace DiscordCLI
if (input == "help" || input == "?") if (input == "help" || input == "?")
{ {
Console.WriteLine($"Prefix: '{InputManager.prefix}' (Only required in text channels)"); Console.WriteLine($"Prefix: '{InputManager.Prefix}' (Only required in text channels)");
Console.WriteLine(); Console.WriteLine();
for (int i = 0; i < CommandsList.Count; i++) for (int i = 0; i < CommandsList.Count; i++)
+4 -4
View File
@@ -3,13 +3,13 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<AssemblyVersion>0.0.4.1</AssemblyVersion> <AssemblyVersion>0.0.5.0</AssemblyVersion>
<FileVersion>0.0.4.1</FileVersion> <FileVersion>0.0.5.0</FileVersion>
<Version>0.0.4.1</Version> <Version>0.0.5.0</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="AlwaysUpToDate" Version="1.0.0.3" /> <PackageReference Include="AlwaysUpToDate" Version="1.0.0.4" />
<PackageReference Include="ColorMineStandard" Version="1.0.0" /> <PackageReference Include="ColorMineStandard" Version="1.0.0" />
<PackageReference Include="DSharpPlus" Version="3.2.3" /> <PackageReference Include="DSharpPlus" Version="3.2.3" />
<PackageReference Include="Stone_Red-C-Sharp-Utilities" Version="1.0.2.1" /> <PackageReference Include="Stone_Red-C-Sharp-Utilities" Version="1.0.2.1" />
+6
View File
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\Properties\PublishProfiles\Linux-ARM.pubxml</_LastSelectedProfileId>
</PropertyGroup>
</Project>
+8 -6
View File
@@ -12,7 +12,7 @@ namespace DiscordCLI
private readonly CommandsManager commandsManager; private readonly CommandsManager commandsManager;
private readonly DiscordClient client; private readonly DiscordClient client;
private readonly List<string> previousInputs = new List<string>(); private readonly List<string> previousInputs = new List<string>();
public const string prefix = ">"; public const string Prefix = ">";
public string Input { get; private set; } = string.Empty; public string Input { get; private set; } = string.Empty;
public InputManager(DiscordClient dicordClient, CommandsManager commandsMan) public InputManager(DiscordClient dicordClient, CommandsManager commandsMan)
@@ -33,12 +33,12 @@ namespace DiscordCLI
int inputListIndex = 0; int inputListIndex = 0;
bool exit = false; bool exit = false;
bool printOverride = false; bool printOverride = false;
string lastInput = prefix; string lastInput = Prefix;
while (!exit) while (!exit)
{ {
DiscordDmChannel dmChannel = GlobalInformation.currentTextChannel as DiscordDmChannel; DiscordDmChannel dmChannel = GlobalInformation.currentTextChannel as DiscordDmChannel;
string infoString = $"\r[{client.CurrentUser.Username}#{client.CurrentUser.Discriminator}] [{(dmChannel is null ? GlobalInformation.currentGuild?.Name : "DMs")}/{(dmChannel is null ? GlobalInformation.currentTextChannel?.Name : string.Join(", ", dmChannel.Recipients.Select(x => x.Username)))}] ==> "; string infoString = $"\r[{client.CurrentUser.Username}#{client.CurrentUser.Discriminator}] [{(dmChannel is null ? GlobalInformation.currentGuild?.Name : "DMs")}/{(dmChannel is null ? GlobalInformation.currentTextChannel?.Name : string.Join(", ", dmChannel.Recipients.Select(x => x.Username)))}] ==> ";
if (lastInput.StartsWith(prefix) || printOverride) if (lastInput.StartsWith(Prefix) || printOverride)
Console.Write(Environment.NewLine + infoString); Console.Write(Environment.NewLine + infoString);
printOverride = false; printOverride = false;
@@ -86,15 +86,17 @@ namespace DiscordCLI
Console.CursorLeft = infoString.Length + Input.Length - 1; Console.CursorLeft = infoString.Length + Input.Length - 1;
} while (keyInfo.Key != ConsoleKey.Enter); } while (keyInfo.Key != ConsoleKey.Enter);
if (GlobalInformation.currentTextChannel == null && !Input.StartsWith(prefix)) if (GlobalInformation.currentTextChannel == null)
{ {
Input = Input.Trim();
if (!Input.StartsWith(Prefix))
Input = Prefix + Input;
if (previousInputs.Count > 10) if (previousInputs.Count > 10)
previousInputs.RemoveAt(0); previousInputs.RemoveAt(0);
if (previousInputs.Count == 0 || previousInputs[previousInputs.Count - 1] != Input) if (previousInputs.Count == 0 || previousInputs[previousInputs.Count - 1] != Input)
previousInputs.Add(new string(Input)); previousInputs.Add(new string(Input));
Input = prefix + Input;
} }
inputListIndex = 0; inputListIndex = 0;
+75 -82
View File
@@ -9,6 +9,7 @@ using System.Linq;
using System.Threading.Tasks; using System.Threading.Tasks;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Text.RegularExpressions;
namespace DiscordCLI namespace DiscordCLI
{ {
@@ -22,18 +23,18 @@ namespace DiscordCLI
client = discordClient; client = discordClient;
} }
public async Task WriteMessage(DiscordMessage message, DiscordChannel channel, DiscordGuild guild, bool writeInfo = true) public async Task WriteMessage(DiscordMessage message, DiscordChannel channel, bool writeInfo = true)
{ {
try try
{ {
if (channel.Id != GlobalInformation.currentTextChannel?.Id) if (message.ChannelId != GlobalInformation.currentTextChannel?.Id)
return; return;
DiscordUser user = message.Author; DiscordUser user = message.Author;
if (GlobalInformation.currentGuild is not null) if (GlobalInformation.currentGuild is not null)
{ {
DiscordMember discordMember = await guild.GetMemberAsync(user.Id); DiscordMember discordMember = await channel.Guild.GetMemberAsync(user.Id);
DiscordColor discordColor = discordMember.Color; DiscordColor discordColor = discordMember.Color;
Color color = Color.FromArgb(discordColor.R, discordColor.G, discordColor.B); Color color = Color.FromArgb(discordColor.R, discordColor.G, discordColor.B);
@@ -94,110 +95,102 @@ namespace DiscordCLI
private void WriteTop(string message, Color color, DiscordMessage discordMessage, bool removeText = true, bool newLine = true, string info = null) private void WriteTop(string message, Color color, DiscordMessage discordMessage, bool removeText = true, bool newLine = true, string info = null)
{ {
ConsoleColor consoleColor = ClosestConsoleColor(color);
if (consoleColor == Console.BackgroundColor || consoleColor == ConsoleColor.DarkGray)
consoleColor = ConsoleColor.White;
if (removeText) if (removeText)
Console.Write('\r' + new string(' ', Console.WindowWidth) + '\r'); Console.Write('\r' + new string(' ', Console.WindowWidth) + '\r');
List<string> words = message.Replace("\n", " %<newLine>%").Split(' ').ToList(); foreach (Match match in Regex.Matches(message, "<@(.*?)>"))
for (int i = 0; i < words.Count; i++)
{ {
ConsoleColor mentionColor = ConsoleColor.Black;
if (IsUri(words[i]))
{
mentionColor = ConsoleColor.DarkCyan;
}
if (words[i].Contains("<") && words[i].Contains(">") && !(words[i].StartsWith("<") && words[i].EndsWith(">")))
{
int index1 = words[i].IndexOf("<");
int index2 = words[i].IndexOf(">");
if (index1 < index2)
{
string part1 = words[i].Substring(0, index1);
string part2 = words[i].Substring(index1, index2 - index1 + 1);
string part3 = words[i].Substring(index2 + 1, words[i].Length - index2 - 1);
words[i] = part2;
if (!string.IsNullOrEmpty(part1))
{
words.Insert(i, part1);
}
if (!string.IsNullOrEmpty(part3))
{
words.Insert(i + (string.IsNullOrEmpty(part1) ? 1 : 2), part3);
}
}
}
foreach (DiscordUser user in discordMessage.MentionedUsers) foreach (DiscordUser user in discordMessage.MentionedUsers)
{ {
if (user?.Mention is not null) if (user?.Mention is not null)
{ {
if (words[i].Contains(user.Mention)) if (match.Value == user.Mention.Replace("!", string.Empty))
{ {
words[i] = words[i].Replace(user.Mention, $"@{user.Username}#{user.Discriminator}"); message = message.Replace(match.Value, $"\0<C{(int)ConsoleColor.Blue}C>@{user.Username}#{user.Discriminator}\0");
mentionColor = ConsoleColor.Blue;
} }
} }
else else
{ {
if (words[i].Contains("<@") && words[i].Contains('>')) if (ulong.TryParse(match.Value.Replace("!", string.Empty).Replace("<@", string.Empty).Replace(">", string.Empty), out ulong id))
{ {
if (ulong.TryParse(words[i].Replace("!", string.Empty).Replace("<@", string.Empty).Replace(">", string.Empty), out ulong id)) DiscordUser discordUser = client.GetUserAsync(id).Result;
{
DiscordUser discordUser = client.GetUserAsync(id).Result;
Console.WriteLine(discordUser is null);
words[i] = words[i].Replace("<@!", "<@").Replace(discordUser.Mention, $"@{discordUser.Username}#{discordUser.Discriminator}"); message = message.Replace(match.Value, $"\0<C{(int)ConsoleColor.Blue}C>@{discordUser.Username}#{discordUser.Discriminator}\0");
mentionColor = ConsoleColor.Blue;
}
} }
} }
} }
if (!discordMessage.Channel.IsPrivate)
foreach (DiscordChannel channel in discordMessage.MentionedChannels)
{
if (channel?.Mention is not null)
if (words[i].Contains(channel.Mention))
{
words[i] = words[i].Replace(channel.Mention, $"#{channel.Name}");
mentionColor = ConsoleColor.Blue;
}
}
if (!discordMessage.Channel.IsPrivate)
foreach (DiscordRole role in discordMessage.MentionedRoles)
{
if (role?.Mention is not null)
if (words[i].Contains(role.Mention))
{
words[i] = words[i].Replace(role.Mention, $"@{role.Name}");
DiscordColor discordColor = role.Color;
mentionColor = ClosestConsoleColor(Color.FromArgb(discordColor.R, discordColor.G, discordColor.B));
}
}
ConsoleExt.Write(words[i].Replace("%<newLine>%", "\n") + " ", mentionColor == ConsoleColor.Black ? consoleColor : mentionColor);
} }
ConsoleExt.Write(info, ConsoleColor.DarkGray); foreach (Match match in Regex.Matches(message, "<#(.*?)>"))
{
foreach (DiscordChannel channel in discordMessage.MentionedChannels)
{
if (channel?.Mention is not null)
{
if (match.Value == channel.Mention)
{
message = message.Replace(match.Value, $"\0<C{(int)ConsoleColor.Blue}C>#{channel.Name}\0");
}
}
else
{
if (ulong.TryParse(match.Value.Replace("<#", string.Empty).Replace(">", string.Empty), out ulong id))
{
DiscordChannel discordChannel = client.GetChannelAsync(id).Result;
message = message.Replace(match.Value, $"\0<C{(int)ConsoleColor.Blue}C>#{discordChannel.Name}\0");
}
}
}
}
foreach (Match match in Regex.Matches(message, @"<@&(.*?)>"))
{
foreach (DiscordRole role in discordMessage.MentionedRoles)
{
if (role?.Mention is not null)
{
if (match.Value == role.Mention)
{
DiscordColor discordColor = role.Color;
message = message.Replace(match.Value, $"\0<C{(int)ClosestConsoleColor(Color.FromArgb(discordColor.R, discordColor.G, discordColor.B))}C>@{role.Name}\0");
}
}
}
}
foreach (Match match in Regex.Matches(message, @"((https?)\:\/\/|www.)[A-Za-z0-9\.\-\&\#\?\/]*", RegexOptions.IgnoreCase))
{
message = message.Replace(match.Value, $"\0<C{(int)ConsoleColor.Blue}C>{match.Value}\0");
}
foreach (string part in message.Split("\0"))
{
ConsoleColor consoleColor;
string messagePart = part;
string stringColor = Regex.Match(messagePart, "(?<=(<C))(.*)(?=C>)").Value;
bool succ = int.TryParse(stringColor, out int colorIndex);
if (succ && colorIndex >= 0 && colorIndex < 16)
{
messagePart = messagePart.Replace($"<C{stringColor}C>", string.Empty);
consoleColor = (ConsoleColor)colorIndex;
}
else
{
consoleColor = ClosestConsoleColor(color);
}
if (consoleColor == Console.BackgroundColor || consoleColor == ConsoleColor.DarkGray)
consoleColor = ConsoleColor.White;
ConsoleExt.Write(messagePart, consoleColor);
}
ConsoleExt.Write($" {info}", ConsoleColor.DarkGray);
if (newLine) if (newLine)
Console.WriteLine(); Console.WriteLine();
} }
private bool IsUri(string input)
{
return Uri.TryCreate(input, UriKind.Absolute, out Uri uriResult) && (uriResult.Scheme == Uri.UriSchemeHttp || uriResult.Scheme == Uri.UriSchemeHttps);
}
private ConsoleColor ClosestConsoleColor(Color targetColor) private ConsoleColor ClosestConsoleColor(Color targetColor)
{ {
double minDif = double.MaxValue; double minDif = double.MaxValue;
+15
View File
@@ -0,0 +1,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace DiscordCLI
{
internal enum PlatformType
{
Windows,
Linux,
LinuxARM
}
}
+47 -10
View File
@@ -4,8 +4,8 @@ using System.Threading.Tasks;
using System; using System;
using DSharpPlus.Exceptions; using DSharpPlus.Exceptions;
using Stone_Red_Utilities.ConsoleExtentions; using Stone_Red_Utilities.ConsoleExtentions;
using System.Reflection;
using AlwaysUpToDate; using AlwaysUpToDate;
using System.Diagnostics;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
namespace DiscordCLI namespace DiscordCLI
@@ -18,12 +18,7 @@ namespace DiscordCLI
private CommandsManager commandsManager; private CommandsManager commandsManager;
private InputManager inputManager; private InputManager inputManager;
private OutputManager outputManager; private OutputManager outputManager;
private Updater updater;
#if DEBUG
private Updater updater = new Updater(new TimeSpan(0), "https://raw.githubusercontent.com/Stone-Red-Code/DiscordCLI/develop/update/updateInfo.json", "./", true);
#else
private Updater updater = new Updater(new TimeSpan(0), "https://raw.githubusercontent.com/Stone-Red-Code/DiscordCLI/main/update/updateInfo.json", "./", true);
#endif
public static void Main() => new Program().Setup().GetAwaiter().GetResult(); public static void Main() => new Program().Setup().GetAwaiter().GetResult();
@@ -32,9 +27,37 @@ namespace DiscordCLI
Console.ForegroundColor = ConsoleColor.White; Console.ForegroundColor = ConsoleColor.White;
Console.OutputEncoding = System.Text.Encoding.UTF8; Console.OutputEncoding = System.Text.Encoding.UTF8;
PlatformType platformType;
if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))
{
if (RuntimeInformation.ProcessArchitecture == Architecture.Arm || RuntimeInformation.ProcessArchitecture == Architecture.Arm64)
{
platformType = PlatformType.LinuxARM;
}
else
{
platformType = PlatformType.Linux;
}
}
else if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
platformType = PlatformType.Windows;
}
else
{
throw new PlatformNotSupportedException("DiscordCLI only supports Windows and Linux!");
}
#if DEBUG
updater = new Updater(new TimeSpan(0), $"https://raw.githubusercontent.com/Stone-Red-Code/DiscordCLI/develop/update/updateInfo{platformType}.json", "./", true);
#else
updater = new Updater(new TimeSpan(0), $"https://raw.githubusercontent.com/Stone-Red-Code/DiscordCLI/main/update/updateInfo{platformType}.json", "./", true);
#endif
updater.UpdateAvailible += Updater_UpdateAvailible; updater.UpdateAvailible += Updater_UpdateAvailible;
updater.NoUpdateAvailible += Updater_NoUpdateAvailible; updater.NoUpdateAvailible += Updater_NoUpdateAvailible;
updater.ProgressChanged += Updater_ProgressChanged; updater.ProgressChanged += Updater_ProgressChanged;
updater.OnException += Updater_OnException;
updater.Start(); updater.Start();
await Task.Delay(-1); await Task.Delay(-1);
@@ -62,7 +85,6 @@ namespace DiscordCLI
Token = token, Token = token,
TokenType = TokenType.User, TokenType = TokenType.User,
}); });
client.MessageCreated += Client_MessageCreated; client.MessageCreated += Client_MessageCreated;
await client.ConnectAsync(); await client.ConnectAsync();
@@ -87,6 +109,7 @@ namespace DiscordCLI
outputManager.InputManager = inputManager; outputManager.InputManager = inputManager;
await inputManager.ReadInput(); await inputManager.ReadInput();
Environment.Exit(0);
} }
private async void Updater_NoUpdateAvailible() private async void Updater_NoUpdateAvailible()
@@ -97,7 +120,7 @@ namespace DiscordCLI
private void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage) private void Updater_ProgressChanged(long? totalFileSize, long totalBytesDownloaded, double? progressPercentage)
{ {
Console.CursorLeft = 0; Console.CursorLeft = 0;
ConsoleExt.WriteLine($"Downloading Update: {progressPercentage}% {totalBytesDownloaded}/{totalFileSize}", ConsoleColor.Yellow); ConsoleExt.WriteLine($"Downloading update: {progressPercentage}% {totalBytesDownloaded}/{totalFileSize}", ConsoleColor.Yellow);
} }
private void Updater_UpdateAvailible(string version, string additionalInformation) private void Updater_UpdateAvailible(string version, string additionalInformation)
@@ -106,9 +129,23 @@ namespace DiscordCLI
updater.Update(); updater.Update();
} }
private void Updater_OnException(Exception exception)
{
ConsoleExt.WriteLine("Update failed!", ConsoleColor.Red);
ConsoleExt.WriteLine(exception.Message, ConsoleColor.Red);
Environment.Exit(-1);
}
private async Task Client_MessageCreated(DSharpPlus.EventArgs.MessageCreateEventArgs e) private async Task Client_MessageCreated(DSharpPlus.EventArgs.MessageCreateEventArgs e)
{ {
await outputManager.WriteMessage(e.Message, e.Channel, e.Guild); try
{
await outputManager.WriteMessage(e.Message, e.Channel);
}
catch (Exception ex)
{
Debug.WriteLine(ex);
}
} }
} }
} }
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\net5.0\publish\Linux-ARM</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifier>linux-arm</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>True</PublishSingleFile>
</PropertyGroup>
</Project>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>True|2021-08-06T17:06:56.0342838Z;</History>
</PropertyGroup>
</Project>
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\net5.0\publish\Linux-x64</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5.0</TargetFramework>
<RuntimeIdentifier>linux-x64</RuntimeIdentifier>
<SelfContained>false</SelfContained>
<PublishSingleFile>True</PublishSingleFile>
</PropertyGroup>
</Project>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>True|2021-08-06T17:03:25.0377279Z;</History>
</PropertyGroup>
</Project>
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Release</Configuration>
<Platform>Any CPU</Platform>
<PublishDir>bin\Release\net5.0\publish\Windows</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5.0</TargetFramework>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>True|2021-08-06T17:08:23.2338085Z;True|2021-08-06T19:06:28.4841484+02:00;True|2021-05-29T18:25:28.6698849+02:00;True|2021-05-29T17:53:55.7039453+02:00;True|2021-05-29T17:07:22.9610987+02:00;True|2021-05-29T16:21:45.0240481+02:00;</History>
</PropertyGroup>
</Project>
Binary file not shown.
File diff suppressed because it is too large Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\David\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\David\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
]
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\David\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\David\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
]
}
}
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "5.0.0"
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\David\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\David\\.nuget\\packages",
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
]
}
}
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "5.0.0"
}
}
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,9 @@
{
"runtimeOptions": {
"tfm": "net5.0",
"framework": {
"name": "Microsoft.NETCore.App",
"version": "5.0.0"
}
}
}
Binary file not shown.
@@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v5.0", FrameworkDisplayName = "")]
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.5.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.5.0")]
[assembly: System.Reflection.AssemblyProductAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyTitleAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.5.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.5.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.5.0")]
[assembly: System.Reflection.AssemblyProductAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyTitleAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.5.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -0,0 +1 @@
0fe06dcdfd35058752e4e8c3a146ebc9e41e8538
@@ -0,0 +1 @@
0fe06dcdfd35058752e4e8c3a146ebc9e41e8538
@@ -0,0 +1,8 @@
is_global = true
build_property.TargetFramework = net5.0
build_property.TargetPlatformMinVersion =
build_property.UsingMicrosoftNETSdkWeb =
build_property.ProjectTypeGuids =
build_property.PublishSingleFile =
build_property.IncludeAllContentForSelfExtract =
build_property._SupportedPlatformList = Android,iOS,Linux,macOS,Windows
@@ -0,0 +1 @@
5819de5694d0ca464238a467fd3b6e9087ce8675
@@ -0,0 +1,67 @@
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\DiscordCLI.exe
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\DiscordCLI.deps.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\DiscordCLI.runtimeconfig.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\DiscordCLI.runtimeconfig.dev.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\ref\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\DiscordCLI.pdb
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\Newtonsoft.Json.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csprojAssemblyReference.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.AssemblyInfoInputs.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.AssemblyInfo.cs
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.CoreCompileInputs.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.CopyComplete
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\ref\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.pdb
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\net5.0\DiscordCLI.genruntimeconfig.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\DSharpPlus.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\Stone_Red-C-Sharp-Utilities.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\net5.0\ColorMineStandard.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.AssemblyInfoInputs.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.AssemblyInfo.cs
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.CoreCompileInputs.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\ref\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.pdb
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.exe
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.deps.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.runtimeconfig.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.runtimeconfig.dev.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\ref\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.pdb
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\ColorMineStandard.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DSharpPlus.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\Newtonsoft.Json.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\Stone_Red-C-Sharp-Utilities.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.CopyComplete
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.genruntimeconfig.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\AlwaysUpToDate.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\System.Text.Json.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.AssemblyReference.cache
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.exe
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.deps.json
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.runtimeconfig.json
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.runtimeconfig.dev.json
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\ref\DiscordCLI.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DiscordCLI.pdb
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\AlwaysUpToDate.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\ColorMineStandard.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\DSharpPlus.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\Newtonsoft.Json.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\Stone_Red-C-Sharp-Utilities.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\bin\Debug\net5.0\System.Text.Json.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.AssemblyInfoInputs.cache
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.AssemblyInfo.cs
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.CoreCompileInputs.cache
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.CopyComplete
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\ref\DiscordCLI.dll
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.pdb
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.genruntimeconfig.cache
C:\Users\David\Programmieren\DiscordCLI\src\DiscordCLI\obj\Debug\net5.0\DiscordCLI.csproj.AssemblyReference.cache
Binary file not shown.
@@ -0,0 +1 @@
d067254352a01513ddeb2db7498953039a00bea6
Binary file not shown.
@@ -0,0 +1,11 @@
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\DiscordCLI.exe
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\DiscordCLI.deps.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\DiscordCLI.runtimeconfig.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\DiscordCLI.pdb
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\AlwaysUpToDate.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\ColorMineStandard.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\DSharpPlus.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\Newtonsoft.Json.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\Stone_Red-C-Sharp-Utilities.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\src\DiscordCLI\bin\Release\net5.0\publish\DiscordCLI\System.Text.Json.dll
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,24 @@
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\DiscordCLI.exe
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\DiscordCLI.deps.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\DiscordCLI.runtimeconfig.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\DiscordCLI.runtimeconfig.dev.json
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\DiscordCLI.pdb
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Discord.Net.Commands.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Discord.Net.Core.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Discord.Net.Rest.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Discord.Net.Rpc.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Discord.Net.Webhook.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Discord.Net.WebSocket.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Microsoft.Extensions.DependencyInjection.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Microsoft.Extensions.DependencyInjection.Abstractions.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\Newtonsoft.Json.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\bin\Debug\netcoreapp3.1\System.Interactive.Async.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.csprojAssemblyReference.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.AssemblyInfoInputs.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.AssemblyInfo.cs
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.csproj.CoreCompileInputs.cache
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.csproj.CopyComplete
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.dll
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.pdb
C:\Users\David\Google Drive\Programmieren\DiscordCLI\DiscordCLI\obj\Debug\netcoreapp3.1\DiscordCLI.genruntimeconfig.cache
@@ -0,0 +1,85 @@
{
"format": 1,
"restore": {
"C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj": {}
},
"projects": {
"C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj": {
"version": "0.0.5",
"restore": {
"projectUniqueName": "C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
"projectName": "DiscordCLI",
"projectPath": "C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
"packagesPath": "C:\\Users\\David\\.nuget\\packages\\",
"outputPath": "C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\David\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Users\\David\\AppData\\Roaming\\Cosmos User Kit\\packages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"AlwaysUpToDate": {
"target": "Package",
"version": "[1.0.0.4, )"
},
"ColorMineStandard": {
"target": "Package",
"version": "[1.0.0, )"
},
"DSharpPlus": {
"target": "Package",
"version": "[3.2.3, )"
},
"Stone_Red-C-Sharp-Utilities": {
"target": "Package",
"version": "[1.0.2.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,85 @@
{
"format": 1,
"restore": {
"C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj": {}
},
"projects": {
"C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj": {
"version": "0.0.5",
"restore": {
"projectUniqueName": "C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
"projectName": "DiscordCLI",
"projectPath": "C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
"packagesPath": "C:\\Users\\David\\.nuget\\packages\\",
"outputPath": "C:\\Users\\David\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\obj\\",
"projectStyle": "PackageReference",
"fallbackFolders": [
"C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages"
],
"configFilePaths": [
"C:\\Users\\David\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"net5.0"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"C:\\Users\\David\\AppData\\Roaming\\Cosmos User Kit\\packages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"net5.0": {
"targetAlias": "net5.0",
"dependencies": {
"AlwaysUpToDate": {
"target": "Package",
"version": "[1.0.0.4, )"
},
"ColorMineStandard": {
"target": "Package",
"version": "[1.0.0, )"
},
"DSharpPlus": {
"target": "Package",
"version": "[3.2.3, )"
},
"Stone_Red-C-Sharp-Utilities": {
"target": "Package",
"version": "[1.0.2.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.302\\RuntimeIdentifierGraph.json"
}
}
}
}
}
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\David\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.10.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\David\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\David\.nuget\packages\newtonsoft.json\10.0.3</PkgNewtonsoft_Json>
</PropertyGroup>
</Project>
@@ -0,0 +1,22 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\David\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.10.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\David\.nuget\packages\" />
<SourceRoot Include="C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages\" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<PkgNewtonsoft_Json Condition=" '$(PkgNewtonsoft_Json)' == '' ">C:\Users\David\.nuget\packages\newtonsoft.json\10.0.3</PkgNewtonsoft_Json>
</PropertyGroup>
</Project>
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>
@@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Dieser Code wurde von einem Tool generiert.
// Laufzeitversion:4.0.30319.42000
//
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
// der Code erneut generiert wird.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.5.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.5.0")]
[assembly: System.Reflection.AssemblyProductAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyTitleAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.5.0")]
// Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -0,0 +1 @@
ede44d59f195a8d2374526c3f81859289b112e13

Some files were not shown because too many files have changed in this diff Show More