mirror of
https://github.com/Stone-Red-Code/DiscordCLI.git
synced 2026-09-04 09:05:59 +02:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
4921d73ce0 | ||
|
|
1b123e3b3a | ||
|
|
6289f17dfa | ||
|
|
7a731cc62c | ||
|
|
eba0d62fa7 | ||
|
|
a6beab85bb |
@@ -2,7 +2,7 @@
|
||||
name: Bug report
|
||||
about: Create a report to help us improve
|
||||
title: ''
|
||||
labels: ''
|
||||
labels: bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
@@ -20,7 +20,7 @@ Steps to reproduce the behavior:
|
||||
**Expected behavior**
|
||||
A clear and concise description of what you expected to happen.
|
||||
|
||||
**Screenshots**
|
||||
**Screenshots/Videos**
|
||||
If applicable, add screenshots to help explain your problem.
|
||||
|
||||
**Desktop (please complete the following information):**
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
name: Feature request
|
||||
about: Suggest an idea for this project
|
||||
title: ''
|
||||
labels: ''
|
||||
labels: enhancement
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
@@ -15,7 +15,7 @@ I will update the above if anything changes!
|
||||
|
||||
1. [Download]("https://github.com/Stone-Red-Code/DiscordCLI/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">)
|
||||
4. Enter one of the commands below
|
||||
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@@ -3,9 +3,9 @@
|
||||
<PropertyGroup>
|
||||
<OutputType>Exe</OutputType>
|
||||
<TargetFramework>net5.0</TargetFramework>
|
||||
<AssemblyVersion>0.0.4.0</AssemblyVersion>
|
||||
<FileVersion>0.0.4.0</FileVersion>
|
||||
<Version>0.0.4.0</Version>
|
||||
<AssemblyVersion>0.0.4.1</AssemblyVersion>
|
||||
<FileVersion>0.0.4.1</FileVersion>
|
||||
<Version>0.0.4.1</Version>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@@ -21,6 +21,13 @@ namespace DiscordCLI
|
||||
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()
|
||||
{
|
||||
int inputListIndex = 0;
|
||||
@@ -43,29 +50,33 @@ namespace DiscordCLI
|
||||
if (!char.IsControl(keyInfo.KeyChar))
|
||||
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);
|
||||
}
|
||||
else if (keyInfo.Key == ConsoleKey.UpArrow)
|
||||
{
|
||||
int previousLength = Input.Length;
|
||||
if (previousInputs.Count > 0)
|
||||
Input = previousInputs[previousInputs.Count - inputListIndex - 1];
|
||||
|
||||
if (inputListIndex < previousInputs.Count - 1)
|
||||
if (inputListIndex < previousInputs.Count - 2)
|
||||
inputListIndex++;
|
||||
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)
|
||||
{
|
||||
int previousLength = Input.Length;
|
||||
if (previousInputs.Count > 0)
|
||||
Input = previousInputs[previousInputs.Count - inputListIndex - 1];
|
||||
|
||||
if (inputListIndex > 0)
|
||||
inputListIndex--;
|
||||
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);
|
||||
|
||||
@@ -4,6 +4,6 @@ https://go.microsoft.com/fwlink/?LinkID=208121.
|
||||
-->
|
||||
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<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>
|
||||
</Project>
|
||||
@@ -6,7 +6,7 @@
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v5.0": {
|
||||
"DiscordCLI/0.0.4.0": {
|
||||
"DiscordCLI/0.0.4.1": {
|
||||
"dependencies": {
|
||||
"AlwaysUpToDate": "1.0.0.3",
|
||||
"ColorMineStandard": "1.0.0",
|
||||
@@ -1013,7 +1013,7 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"DiscordCLI/0.0.4.0": {
|
||||
"DiscordCLI/0.0.4.1": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v5.0": {
|
||||
"DiscordCLI/0.0.4.0": {
|
||||
"DiscordCLI/0.0.4.1": {
|
||||
"dependencies": {
|
||||
"AlwaysUpToDate": "1.0.0.3",
|
||||
"ColorMineStandard": "1.0.0",
|
||||
@@ -1013,7 +1013,7 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"DiscordCLI/0.0.4.0": {
|
||||
"DiscordCLI/0.0.4.1": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -6,7 +6,7 @@
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v5.0": {
|
||||
"DiscordCLI/0.0.4.0": {
|
||||
"DiscordCLI/0.0.4.1": {
|
||||
"dependencies": {
|
||||
"AlwaysUpToDate": "1.0.0.3",
|
||||
"ColorMineStandard": "1.0.0",
|
||||
@@ -1013,7 +1013,7 @@
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"DiscordCLI/0.0.4.0": {
|
||||
"DiscordCLI/0.0.4.1": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -13,11 +13,11 @@ using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.0")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.1")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.1")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("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.
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
dedb7a4646bba9201d29c4cc7211a4881d770e52
|
||||
5d54ca63148aa381a54ca3c8c4317ef16b1d9b46
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5,7 +5,7 @@
|
||||
},
|
||||
"projects": {
|
||||
"C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj": {
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.4.1",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
|
||||
"projectName": "DiscordCLI",
|
||||
|
||||
@@ -13,11 +13,11 @@ using System.Reflection;
|
||||
|
||||
[assembly: System.Reflection.AssemblyCompanyAttribute("DiscordCLI")]
|
||||
[assembly: System.Reflection.AssemblyConfigurationAttribute("Release")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.0")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.0")]
|
||||
[assembly: System.Reflection.AssemblyFileVersionAttribute("0.0.4.1")]
|
||||
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("0.0.4.1")]
|
||||
[assembly: System.Reflection.AssemblyProductAttribute("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.
|
||||
|
||||
|
||||
@@ -1 +1 @@
|
||||
e7a28f44480e6d7c3cc5ae26796c4ed1fed24767
|
||||
6f8b673dc0e2a6469765cef6ee1a51714e2481b8
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -5937,7 +5937,7 @@
|
||||
"C:\\Program Files (x86)\\Microsoft\\Xamarin\\NuGet\\": {}
|
||||
},
|
||||
"project": {
|
||||
"version": "0.0.4",
|
||||
"version": "0.0.4.1",
|
||||
"restore": {
|
||||
"projectUniqueName": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
|
||||
"projectName": "DiscordCLI",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"version": 2,
|
||||
"dgSpecHash": "sDgX8qm8cSHJ0TDjQxLzYI0BGqd9ZbIQHKZL5+1wc6kCWhLM7an1Y8nmm5tii35pK9ispeNnJ+CPKEl6Y5a2Cg==",
|
||||
"dgSpecHash": "L9MGn2vBA5FHai7RpURceOlcyJRpaPmCH6WoFdI8BFX4WsXHQqzhn9SXfp8GGFc0a4rAQ5egDzz1WCys0WIbrw==",
|
||||
"success": true,
|
||||
"projectFilePath": "C:\\Users\\David\\Google Drive\\Programmieren\\DiscordCLI\\src\\DiscordCLI\\DiscordCLI.csproj",
|
||||
"expectedPackageFiles": [
|
||||
|
||||
Binary file not shown.
@@ -1,4 +1,4 @@
|
||||
{
|
||||
"Version":"0.0.4.0",
|
||||
"FileUrl":"http://github.com/Stone-Red-Code/DiscordCLI/blob/develop/update/DiscordCLI.zip?raw=true"
|
||||
"Version":"0.0.4.1",
|
||||
"FileUrl":"http://github.com/Stone-Red-Code/DiscordCLI/blob/main/update/DiscordCLI.zip?raw=true"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user