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

Bug: Tries to delete MEE6 Messages + Thread Messages (+ slows PC) #535

Open
1 of 4 tasks
JayBoom opened this issue Aug 1, 2023 · 9 comments
Open
1 of 4 tasks

Bug: Tries to delete MEE6 Messages + Thread Messages (+ slows PC) #535

JayBoom opened this issue Aug 1, 2023 · 9 comments

Comments

@JayBoom
Copy link

JayBoom commented Aug 1, 2023

Undiscord Version

v5.2.3

Browser

115.0.5790.110 (Official Build) (64-bit)

Extension

Tampermonkey

Reproduction steps

  1. Tried to delete messages before a certain date

Actual results

Tries to delete MEE6 bot messages:
Error deleting message, API responded with status 403! {"message":"Missing Permissions","code":50013}

As well as thread messages:
Error deleting message (Thread is archived). Will increment offset so we don't search this in the next page...

(Does the thread one above 100's of times)

Expected results

Skip MEE6 messages and archived thread messages

Bug affects

  • DMs
  • DMs (group)
  • Channels
  • Channel (NSFW)

Additional information & file uploads

mee6

@JayBoom
Copy link
Author

JayBoom commented Aug 1, 2023

I believe @ckcr4lyf may have a found a solution is #520 for the Archived threads, as well as #526 maybe having a line from @CactusHamster on the MEE6/bot/slash command error messages

@ckcr4lyf
Copy link
Contributor

ckcr4lyf commented Aug 1, 2023

For Error deleting message (Thread is archived). Will increment offset so we don't search this in the next page... , this is just a WARN message, and it will skip it.

Previously this would hard error and reach an unusable state, but I fixed it in #518

@ckcr4lyf
Copy link
Contributor

ckcr4lyf commented Aug 1, 2023

That is to say, the expected behavior is already "correct" for archived messages, i.e. "skipped". (A warning is printed so that the user knows some stuff was not deleted).

@JayBoom
Copy link
Author

JayBoom commented Aug 2, 2023

That is to say, the expected behavior is already "correct" for archived messages, i.e. "skipped". (A warning is printed so that the user knows some stuff was not deleted).

But it got stuck for 16 hours on that, it was 4 years of data but it was just stuck on archived messages, using the fix in #520 fixed this and I got it done though fortunately, as well as putting in the line of code from #526 fixed the MEE6 bot issues, I would recommend putting these in main :)

@ckcr4lyf
Copy link
Contributor

ckcr4lyf commented Aug 2, 2023

I would recommend putting these in main :)

Let's see when the author has time to review it. Till then I guess you'll need to use your fork

@karcfa
Copy link

karcfa commented Aug 5, 2023

same here. it tries to remove DISBOARD (/bump) and MEEE(?) messages and it slows down the operation a lot. It also wont remove many legit messages by the way, but it did in the past.

@ckcr4lyf
Copy link
Contributor

ckcr4lyf commented Aug 6, 2023

@karcfa can you try the patch in #526 and see if that fixes it? You could comment your feedback in there.

@karcfa
Copy link

karcfa commented Aug 6, 2023

@karcfa can you try the patch in #526 and see if that fixes it? You could comment your feedback in there.

Hi, it started deleting again, thanks
i added this line at this position:
image

I also recommend to set the delay before switching to next page to 5 seconds or something because the default 30 second would be too long and would also apply when the bot didnt remove anything on current page (cause they were all skipped)
(Not sure)

@false-fox
Copy link

false-fox commented May 21, 2024

Fixed partially in #629 :)

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

4 participants