6 Commits
Author SHA1 Message Date
Stone_Red 4921d73ce0 Update updateInfo.json 2021-05-31 19:32:37 +02:00
Stone-Red-Code 1b123e3b3a Fixed #3 and some other bugs
- Fixed command history adding random newlines
- Fixed #3 (hopefully)
2021-05-31 19:27:33 +02:00
Stone_Red 6289f17dfa Update README.md 2021-05-29 18:38:26 +02:00
Stone-Red-Code 7a731cc62c Merge branch 'develop' into main 2021-05-29 18:29:59 +02:00
Stone_Red eba0d62fa7 Update issue templates 2021-05-29 13:19:19 +02:00
Stone_Red a6beab85bb Update issue templates 2021-05-28 20:19:32 +02:00
41 changed files with 42 additions and 31 deletions
+2 -2
View File
@@ -2,7 +2,7 @@
name: Bug report name: Bug report
about: Create a report to help us improve about: Create a report to help us improve
title: '' title: ''
labels: '' labels: bug
assignees: '' assignees: ''
--- ---
@@ -20,7 +20,7 @@ Steps to reproduce the behavior:
**Expected behavior** **Expected behavior**
A clear and concise description of what you expected to happen. A clear and concise description of what you expected to happen.
**Screenshots** **Screenshots/Videos**
If applicable, add screenshots to help explain your problem. If applicable, add screenshots to help explain your problem.
**Desktop (please complete the following information):** **Desktop (please complete the following information):**
+1 -1
View File
@@ -2,7 +2,7 @@
name: Feature request name: Feature request
about: Suggest an idea for this project about: Suggest an idea for this project
title: '' title: ''
labels: '' labels: enhancement
assignees: '' assignees: ''
--- ---
+1 -1
View File
@@ -15,7 +15,7 @@ I will update the above if anything changes!
1. [Download]("https://github.com/Stone-Red-Code/DiscordCLI/releases 1. [Download]("https://github.com/Stone-Red-Code/DiscordCLI/releases
) one of the releases ) one of the releases
2. Execute the `DiscordCLI` file 2. Execute the `DiscordCLI.exe` file (also works on Linux)
3. Enter your [User Token](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs#how-to-get-a-user-token">) 3. Enter your [User Token](https://github.com/Tyrrrz/DiscordChatExporter/wiki/Obtaining-Token-and-Channel-IDs#how-to-get-a-user-token">)
4. Enter one of the commands below 4. Enter one of the commands below
Binary file not shown.
Binary file not shown.
+3 -3
View File
@@ -3,9 +3,9 @@
<PropertyGroup> <PropertyGroup>
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework> <TargetFramework>net5.0</TargetFramework>
<AssemblyVersion>0.0.4.0</AssemblyVersion> <AssemblyVersion>0.0.4.1</AssemblyVersion>
<FileVersion>0.0.4.0</FileVersion> <FileVersion>0.0.4.1</FileVersion>
<Version>0.0.4.0</Version> <Version>0.0.4.1</Version>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
+15 -4
View File
@@ -21,6 +21,13 @@ namespace DiscordCLI
commandsManager = commandsMan; commandsManager = commandsMan;
} }
private static IEnumerable<Enum> GetFlags(Enum input)
{
foreach (Enum value in Enum.GetValues(input.GetType()))
if (input.HasFlag(value))
yield return value;
}
public async Task ReadInput() public async Task ReadInput()
{ {
int inputListIndex = 0; int inputListIndex = 0;
@@ -43,29 +50,33 @@ namespace DiscordCLI
if (!char.IsControl(keyInfo.KeyChar)) if (!char.IsControl(keyInfo.KeyChar))
Input += keyInfo.KeyChar.ToString(); Input += keyInfo.KeyChar.ToString();
if (keyInfo.Key == ConsoleKey.Backspace && Input.Length > 0) System.Diagnostics.Debug.WriteLine(inputListIndex);
System.Diagnostics.Debug.WriteLine(previousInputs.Count - inputListIndex - 1);
if (keyInfo.KeyChar == (int)ConsoleKey.Backspace && Input.Length > 0)
{ {
Input = Input.Remove(Input.Length - 1); Input = Input.Remove(Input.Length - 1);
} }
else if (keyInfo.Key == ConsoleKey.UpArrow) else if (keyInfo.Key == ConsoleKey.UpArrow)
{ {
int previousLength = Input.Length;
if (previousInputs.Count > 0) if (previousInputs.Count > 0)
Input = previousInputs[previousInputs.Count - inputListIndex - 1]; Input = previousInputs[previousInputs.Count - inputListIndex - 1];
if (inputListIndex < previousInputs.Count - 1) if (inputListIndex < previousInputs.Count - 2)
inputListIndex++; inputListIndex++;
Console.CursorLeft = infoString.Length - 1; Console.CursorLeft = infoString.Length - 1;
Console.Write(Input + new string(' ', Console.WindowWidth - infoString.Length - 1)); Console.Write(Input + new string(' ', Math.Max(previousLength - Input.Length, 0)));
} }
else if (keyInfo.Key == ConsoleKey.DownArrow) else if (keyInfo.Key == ConsoleKey.DownArrow)
{ {
int previousLength = Input.Length;
if (previousInputs.Count > 0) if (previousInputs.Count > 0)
Input = previousInputs[previousInputs.Count - inputListIndex - 1]; Input = previousInputs[previousInputs.Count - inputListIndex - 1];
if (inputListIndex > 0) if (inputListIndex > 0)
inputListIndex--; inputListIndex--;
Console.CursorLeft = infoString.Length - 1; Console.CursorLeft = infoString.Length - 1;
Console.Write(Input + new string(' ', Console.WindowWidth - infoString.Length - 1)); Console.Write(Input + new string(' ', Math.Max(previousLength - Input.Length, 0)));
} }
Console.Write(keyInfo.KeyChar); Console.Write(keyInfo.KeyChar);
@@ -4,6 +4,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
--> -->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup> <PropertyGroup>
<History>True|2021-05-29T16:25:28.6698849Z;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> <History>True|2021-05-31T17:23:33.4240354Z;True|2021-05-31T19:20:39.6710032+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> </PropertyGroup>
</Project> </Project>
@@ -6,7 +6,7 @@
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
".NETCoreApp,Version=v5.0": { ".NETCoreApp,Version=v5.0": {
"DiscordCLI/0.0.4.0": { "DiscordCLI/0.0.4.1": {
"dependencies": { "dependencies": {
"AlwaysUpToDate": "1.0.0.3", "AlwaysUpToDate": "1.0.0.3",
"ColorMineStandard": "1.0.0", "ColorMineStandard": "1.0.0",
@@ -1013,7 +1013,7 @@
} }
}, },
"libraries": { "libraries": {
"DiscordCLI/0.0.4.0": { "DiscordCLI/0.0.4.1": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
".NETCoreApp,Version=v5.0": { ".NETCoreApp,Version=v5.0": {
"DiscordCLI/0.0.4.0": { "DiscordCLI/0.0.4.1": {
"dependencies": { "dependencies": {
"AlwaysUpToDate": "1.0.0.3", "AlwaysUpToDate": "1.0.0.3",
"ColorMineStandard": "1.0.0", "ColorMineStandard": "1.0.0",
@@ -1013,7 +1013,7 @@
} }
}, },
"libraries": { "libraries": {
"DiscordCLI/0.0.4.0": { "DiscordCLI/0.0.4.1": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
"compilationOptions": {}, "compilationOptions": {},
"targets": { "targets": {
".NETCoreApp,Version=v5.0": { ".NETCoreApp,Version=v5.0": {
"DiscordCLI/0.0.4.0": { "DiscordCLI/0.0.4.1": {
"dependencies": { "dependencies": {
"AlwaysUpToDate": "1.0.0.3", "AlwaysUpToDate": "1.0.0.3",
"ColorMineStandard": "1.0.0", "ColorMineStandard": "1.0.0",
@@ -1013,7 +1013,7 @@
} }
}, },
"libraries": { "libraries": {
"DiscordCLI/0.0.4.0": { "DiscordCLI/0.0.4.1": {
"type": "project", "type": "project",
"serviceable": false, "serviceable": false,
"sha512": "" "sha512": ""
Binary file not shown.
@@ -13,11 +13,11 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")] [assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.0")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.1")]
[assembly: System.Reflection.AssemblyProductAttribute("DiscordCLI")] [assembly: System.Reflection.AssemblyProductAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyTitleAttribute("DiscordCLI")] [assembly: System.Reflection.AssemblyTitleAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.4.0")] [assembly: System.Reflection.AssemblyVersionAttribute("0.0.4.1")]
// Von der MSBuild WriteCodeFragment-Klasse generiert. // Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -1 +1 @@
dedb7a4646bba9201d29c4cc7211a4881d770e52 5d54ca63148aa381a54ca3c8c4317ef16b1d9b46
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,7 +5,7 @@
}, },
"projects": { "projects": {
"C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj": { "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj": {
"version": "0.0.4", "version": "0.0.4.1",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj", "projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
"projectName": "DiscordCLI", "projectName": "DiscordCLI",
@@ -13,11 +13,11 @@ using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")] [assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")] [assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.0")] [assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.1")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.0")] [assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.1")]
[assembly: System.Reflection.AssemblyProductAttribute("DiscordCLI")] [assembly: System.Reflection.AssemblyProductAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyTitleAttribute("DiscordCLI")] [assembly: System.Reflection.AssemblyTitleAttribute("DiscordCLI")]
[assembly: System.Reflection.AssemblyVersionAttribute("0.0.4.0")] [assembly: System.Reflection.AssemblyVersionAttribute("0.0.4.1")]
// Von der MSBuild WriteCodeFragment-Klasse generiert. // Von der MSBuild WriteCodeFragment-Klasse generiert.
@@ -1 +1 @@
e7a28f44480e6d7c3cc5ae26796c4ed1fed24767 6f8b673dc0e2a6469765cef6ee1a51714e2481b8
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -5937,7 +5937,7 @@
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {} "C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {}
}, },
"project": { "project": {
"version": "0.0.4", "version": "0.0.4.1",
"restore": { "restore": {
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj", "projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
"projectName": "DiscordCLI", "projectName": "DiscordCLI",
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"version": 2, "version": 2,
"dgSpecHash": "sDgX8qm8cSHJ0TDjQxLzYI0BGqd9ZbIQHKZL5+1wc6kCWhLM7an1Y8nmm5tii35pK9ispeNnJ+CPKEl6Y5a2Cg==", "dgSpecHash": "L9MGn2vBA5FHai7RpURceOlcyJRpaPmCH6WoFdI8BFX4WsXHQqzhn9SXfp8GGFc0a4rAQ5egDzz1WCys0WIbrw==",
"success": true, "success": true,
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj", "projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [
Binary file not shown.
+2 -2
View File
@@ -1,4 +1,4 @@
{ {
"Version":"0.0.4.0", "Version":"0.0.4.1",
"FileUrl":"http://github.com/Stone-Red-Code/DiscordCLI/blob/develop/update/DiscordCLI.zip?raw=true" "FileUrl":"http://github.com/Stone-Red-Code/DiscordCLI/blob/main/update/DiscordCLI.zip?raw=true"
} }