UnifierHQ / unifier

A cross-server and cross-platform bridge bot that works just as fast as you can type 🚀
https://wiki.unifierhq.org
GNU Affero General Public License v3.0
12 stars 17 forks source link

Rewrite rooms data structure #150

Closed greeeen-dev closed 4 months ago

greeeen-dev commented 4 months ago

Checklist

Is your feature request related to a problem? Please describe.

For Revolt/Guilded Support, rooms need to be synced every time the Revolt bot boots. So when a room is created after the support Plugin was last loaded, this room will not sync.

Describe the solution you'd like

Change structure like this:

"rooms": {
  "main": {
    "discord": {
      "123456789012345678": {}
    },
    "revolt": {
      "01HQEBPBRCTYY63XGXK8GA36PS": {}
    }
  }
}

Describe alternatives you've considered

Adding an auto-sync system to Revolt Support whenever an unknown room is created, but organizing the structure like this would probably be better, especially once native community-maintained platform support drops.

Additional context

greeeen-dev commented 4 months ago

Completed, this will be closed once the PR is merged

Going to restructure rules, type (locked/restricted/etc), etc. too before I merge this.