Seklfreak / discord-image-downloader-go

A simple tool which downloads pictures posted in discord channels of your choice to a local folder.
MIT License
354 stars 91 forks source link

Cant run #52

Closed Cronosus closed 6 years ago

Cronosus commented 6 years ago

hello when i try to run, it says Malformed version.... it not makes log and it slosed too fast to full read. yesterday it works for me in config all default, just my login credentials added + some channels i'm not using two-factor authentication

ad. i tried to make screenshot :D http://cronos.wz.cz/screen.png

DreamPhreak commented 6 years ago

It seems they changed it to where now you need to use the token regardless if using two-factor auth or not.

Fix: Under the [auth] section, delete both the email/password lines, and replace with token = <token key here>

And to get the token key, open up discord in the browser (https://discordapp.com/channels/@me), press Ctrl + Shift + i (or F12), select "Application" from the top menu https://i.imgur.com/vxUNp5K.png, select the "Local Storage" option in the sidebar https://i.imgur.com/cE09ZuI.png, and the Token should be the last one in the list. Take out the quotes when pasting into the config.

Credit to @revi for finding and adding it to the readme.


Also a tip for future reference regarding the program closing before you can read it: In the folder that contains the .exe, hold Shift and right-click in the folder and select the option to open command prompt or windows powershell. Then in that new window, just type the name of the .exe and enter. When it runs and quits, the error message will stay visible in the window. In my fork I added pauses for some error messages so we wouldn't need to go through all of this trouble just to see an error message.

Cronosus commented 6 years ago

thanks for images, it works now

revi commented 6 years ago

Btw, getting token via LocalStorage should work on discord client, too.