Seklfreak / discord-image-downloader-go

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

Added queue functionality to the history command #81

Closed EnanoFurtivo closed 6 years ago

EnanoFurtivo commented 6 years ago

This same piece of code can be found at https://pastebin.com/MBhFQfHQ Edited by EnanoFurtivo: https://github.com/EnanoFurtivo/discord-image-downloader-go Sourcecode by Selfreak: https://github.com/Seklfreak/discord-image-downloader-go

This code adds the functinality to queue more than one channel id for history donwload at a time

Edited file main.go in 'Case == history'

IMPORTANT: in the main.go that is uploaded in my github i had to delete a bunch of code due to a to a problem with mvdan.cc library. Still i was able to compile and test the functionality of the added feature. Something to have in mind is that the piece of code below is complete and nothing was substracted from it only it was added with the for function wich allows this modification to work (nothing else is needed). If you replace this into the original main.go from Selfreak and you manage to fully compile, all of the original functionalities should still be working just fine plus the added for functionality.

Modified piece of code can be found at the pastebin above or on the Changes Readme.txt attached to the main branch

EnanoFurtivo commented 6 years ago

Btw im new to github so i dont really know wich type of request i have to use so yeah.

Seklfreak commented 6 years ago

Thank you very much! I will take a look on monday

Seklfreak commented 6 years ago

Looks great, should be very useful. I updated it to the current version. Thank you very much!

EnanoFurtivo commented 6 years ago

Nice, glad the feature made it in! Keep up the good work.