Coder Social home page Coder Social logo

Comments (21)

zyrodos avatar zyrodos commented on June 26, 2024 1

@c-edw you're the best, thank you for walking me through this. i truly appreciate it, it is running now!

from discord-delete.

cedws avatar cedws commented on June 26, 2024

Another random thought: since full deletion isn't really effective anymore, this whole thing could probably be done as a browser extension...

from discord-delete.

cedws avatar cedws commented on June 26, 2024

More thoughts on the extension. Discord has maliciously cut off access to localStorage, preventing access to the auth cookie (this is absolutely insane and only reinforces my statement in the README...).
Thankfully, a clever guy has found a way around it. I'll probably use this as a starting point. Though I have no doubts Discord will make things even more difficult in future. Insane.

from discord-delete.

larryqiann avatar larryqiann commented on June 26, 2024

In my experience I've found that getting this running on a Mac running the latest macOS (Mojave) requires:
-Homebrew
-Clone the repo
-brew install python3
-pip3 install aiohttp
-DISCORD_TOKEN=[token] python3 discord_delete.py -v partial

Perhaps in the meantime this could be added to a readme or other file to help other users.

from discord-delete.

cedws avatar cedws commented on June 26, 2024

@larryqiann
Thanks, you highlighted some good improvements to the wiki pages here which have been added. Most importantly, I forgot to mention to install Python...
Rather than pip3 install aiohttp, you can use pip3 install -r requirements.txt to ensure you get all of the dependencies that the project requires. Just for future reference.

from discord-delete.

larryqiann avatar larryqiann commented on June 26, 2024

Another thing I noticed is that the whitelisting/blacklisting nomenclature may benefit from further explanation. Many browser extensions use "whitelist" to refer to "avoid processing these items". When I tested it, it appeared that the opposite was true for this.

from discord-delete.

zyrodos avatar zyrodos commented on June 26, 2024

Yeah, this would be super helpful. I've been trying to run this for the past few days and am constantly running into errors.

from discord-delete.

cedws avatar cedws commented on June 26, 2024

You're welcome to raise issues for the problems you are encountering. I may rewrite the tool soon if I get the time.

from discord-delete.

cedws avatar cedws commented on June 26, 2024

Update for those interested: I am rewriting this project in Go on the GoRewrite branch. I wouldn't recommend using it yet though - I'll make a release and distribution archives when the time comes.

from discord-delete.

zyrodos avatar zyrodos commented on June 26, 2024

Hi,

So I download delete-discord-windows file which is 9.23 MB, not the zip, correct (version 1.1.2)?

After that, I put the file on a place like my desktop and then open powershell. Then I get my auth key, which I believe I am doing correctly, and putting it in between the parenthesis $env:DISCORD_TOKEN="[YOUR TOKEN]" where [YOUR TOKEN] would be.

Then I click enter?

Then I copy and paste ./discord-delete-windows partial into powershell and click enter, but when I do this, I run into various errors.

Can you please help me figure out where I am going wrong @c-edw? Thank you

from discord-delete.

cedws avatar cedws commented on June 26, 2024

@zyrodos I would be happy to. Can you post the output of ./discord-delete-windows -v partial? Be sure to redact your token and any numeric IDs (123456789) from the output.

from discord-delete.

zyrodos avatar zyrodos commented on June 26, 2024

@c-edw

./discord-delete-windows : The term './discord-delete-windows' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:1 char:1

  • ./discord-delete-windows partial
  •   + CategoryInfo          : ObjectNotFound: (./discord-delete-windows:String) [], CommandNotFoundException
      + FullyQualifiedErrorId : CommandNotFoundException
    

from discord-delete.

cedws avatar cedws commented on June 26, 2024

@zyrodos The command that you're pasting into PowerShell references a program (discord-delete-windows). See the ./ at the start of the command? That means that you're asking PowerShell to look in the current directory for the program. If the program isn't there, that's what would cause the error that you've pasted above.

I assume that you saved discord-delete-windows to your Downloads folder. Try running cd ~/Downloads in PowerShell, then run ./discord-delete-windows -v partial after that (and don't forget to set the token too first - $env:DISCORD_TOKEN="[YOUR TOKEN]").

from discord-delete.

zyrodos avatar zyrodos commented on June 26, 2024

Hey thanks @c-edw I did that, but ran into this error message:

Program 'discord-delete-windows' failed to run: No application is associated with the specified file for this
operationAt line:1 char:1

  • ./discord-delete-windows -v partial

At line:1 char:1

  • ./discord-delete-windows -v partial
  •   + CategoryInfo          : ResourceUnavailable: (:) [], ApplicationFailedException
      + FullyQualifiedErrorId : NativeCommandFailed
    

from discord-delete.

cedws avatar cedws commented on June 26, 2024

Hey @zyrodos, I was able to reproduce your issue on my machine and I've created a new release to fix this. Please download the new binary (discord-delete-windows.exe) and follow the same steps as before.

cd ~/Downloads
$env:DISCORD_TOKEN="[YOUR TOKEN]"
./discord-delete-windows.exe -v partial

from discord-delete.

zyrodos avatar zyrodos commented on June 26, 2024

Thanks, I tried it and got an error:

time="2019-10-27T19:40:29-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/numberstringhere912349324/messages/numberstringhere912349324"
time="2019-10-27T19:40:29-04:00" level=debug msg="Server returned status Too Many Requests"
time="2019-10-27T19:40:29-04:00" level=info msg="Server asked us to sleep for 449 milliseconds"
time="2019-10-27T19:40:30-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/275617516783665152/messages/600475494772899909"
time="2019-10-27T19:40:30-04:00" level=debug msg="Server returned status No Content"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=info msg="Deleting message numberstringhere912349324 from numberstringhere912349324"
time="2019-10-27T19:40:30-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/numberstringhere912349324/messages/numberstringhere912349324"
time="2019-10-27T19:40:30-04:00" level=debug msg="Server returned status No Content"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=debug msg="Skipping context message"
time="2019-10-27T19:40:30-04:00" level=info msg="Deleting message numberstringhere912349324 from channel numberstringhere912349324"
time="2019-10-27T19:40:30-04:00" level=debug msg="DELETE https://discordapp.com/api/v6/channels/numberstringhere912349324/messages/numberstringhere912349324"

and it keeps repeating

I replaced the string of numbers that would signify the channel and the server with "randomstringhere912349324"

any idea?

from discord-delete.

cedws avatar cedws commented on June 26, 2024

@zyrodos It looks like it's working. You'll need to give it some time to finish. Run the command without -v and it will give you a better idea of what's going on.

from discord-delete.

zyrodos avatar zyrodos commented on June 26, 2024

Hi, I just realized there were some servers and DM convos that it doesn't fully delete things from anymore on Windows. Have you noticed this with other users? @cedws ?

from discord-delete.

cedws avatar cedws commented on June 26, 2024

Hi, I just realized there were some servers and DM convos that it doesn't fully delete things from anymore on Windows. Have you noticed this with other users? @cedws ?

@larryqiann has also reported this. If it started happening suddenly to multiple people then there's a chance that Discord have updated their API. I will try to take a look tomorrow.

When do you last remember it working?

from discord-delete.

zyrodos avatar zyrodos commented on June 26, 2024

Hey, I think I remember it last working maybe a week(ish) ago? Right now it deletes just some stuff from some channels and seems to skip over a bunch of stuff seemingly at random. Thanks @cedws

from discord-delete.

cedws avatar cedws commented on June 26, 2024

Hello @zyrodos, a new release has been made with a change that might resolve your issue. Please give this a go. Let's discuss any further deletion problems in #21.

from discord-delete.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.