Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't use double quotes with the command-line argument "-x" #58

Open
Thefakewhitefang opened this issue Mar 7, 2023 · 1 comment
Open

Comments

@Thefakewhitefang
Copy link

DiscordConsole does not treat strings enclosed in double quotes as such. So when I run the command:
DiscordConsole.exe -x "game listening "A B C" "D E F" "G H I""

It runs the executable but gives the output

> game listening A
> ^C
exit

Whereas the expected output would be
> game listening "A B C" "D E F" "G H I"

Is this the expected result? I have also tried using double-double-quotes but it seems to remove them too.

@Mnpn
Copy link
Member

Mnpn commented Mar 7, 2023

Hi there! The quote before the A in "A B C" ends up closing the first quote before game, this results in what you're seeing with only "game listening "A being counted as the argument to -x. Perhaps the following image explains it better:

Screenshot 2023-03-07 at 20 22 07

You can work around this by mixing single and double quotes like this: DiscordConsole.exe -x "game listening 'A B C' 'D E F' 'G H I'", or by escaping the inner quotes with backslashes like this: DiscordConsole.exe -x "game listening \"A B C\" \"D E F\" \"G H I\"".

Screenshot 2023-03-07 at 20 24 18

Screenshot 2023-03-07 at 20 42 51

However, I should note that I'm afraid Discord's API has changed too much since DiscordConsole was last actively maintained & updated, and game statuses might no longer work since they has been updated to "activities" - YMMV unfortunately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants