discordconsole-team / DiscordConsole

Control your Discord & Discord bot accounts and Webhooks through the command line.
GNU General Public License v3.0
90 stars 8 forks source link

Feature request #57

Open SBTopZZZ-LG opened 2 years ago

SBTopZZZ-LG commented 2 years ago

I was trying to automate things (stuff like changing my status to "Playing AFK" whenever I am going AFK, or anything else) by writing commands to a batch file, but I simply can't do it because I cannot pass arguments to DiscordConsole executable (the arguments being commands that will be executed when it starts). Also it keeps asking for token everytime, it would be very convenient if it cached previous tokens and tried re-using them, and then prompting to re-enter if it failed to do so.

Mnpn commented 2 years ago

Hi! Sorry for not replying sooner. To skip entering the token every time, you can either pass it with -t "stuff" or (preferably) create a file called .autorun in the same directory as your DiscordConsole executable, with your token on the first line of the file prefixed by a : (e.g. :user myverylongtokengoeshere.

As for passing commands to run, are the arguments not working at all for you? There is -x which can be used like -x "status idle", but I'm thinking that maybe since you're on Windows you might have to use a / instead of a -, e.g. DiscordConsole.exe /x "status idle", could you try that?