jonathonor / syncBot

A bot that syncs roles between multiple discord servers.
https://www.jonsbots.com/syncBot
30 stars 16 forks source link

Role checker analyze does not fix mismatches in roles #26

Open Pogodenhelder opened 7 months ago

Pogodenhelder commented 7 months ago

Describe the bug I have 2 servers, 1 main and 1 secondary. At one time 1 saw that there where a few ( i think 3 ) people that had a special role in the secondary server and not in the main server because they lost the role on the main server.

However it stays unclear how the bot didnt sync the roles, they should be removed.. So i did a analyze to find more people. The analyze was run, but it didnt sync or fix the problem. It didnt saw the persons with the special role in the secondary server.. therefor not removing it.

Most of the time the sync bot just works.. but this was a rather strange thing. and still i cant fix this and need to remove the role myself

The syncbot is on top of the role section.. and no errors are in the logs that indicates something is wrong.

To Reproduce Steps to reproduce the behavior:

  1. have 1 person in both servers
  2. Give person in server 1 the role, it will be synct to server 2
  3. remove role from person in server 1,
  4. role doesnt get deleted from person in server 2..
  5. maybe bot was offline altough it has been stable who knows.. so we do an analyze.
  6. bot does the analyze if there are errors.
  7. it does not see that the person has special role in server 2 and not in 1 anymore.. so it leaves the role on the person

Expected behavior An analyze should see that there is something wrong or not in sync and fix the roles.

Additional context Remember this is hard to reproduce.. the only way for me to reproduce is..

give the person a role in server 2 that it does not have anymore in server 1. And see what the bot does with it.. Analyze should fix it, but does not.