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

[Bug] Heterogeneous (multi-type) arrays cannot be loaded from TOML #170

Closed greeeen-dev closed 3 months ago

greeeen-dev commented 3 months ago

Checklist

Version

3.0.0 (dev)

Bug description

Unifier always loads from the legacy config.json file, as the TOML library we use (toml) does not support heterogeneous arrays. (We cannot use tomllib, as that's for Python 3.11+)

We're planning moving to YAML or going back to JSON.

Reproduction steps

  1. Run Unifier

Expected behavior

Unifier loads from TOML.

Plugins

No response

Modified instance

Modified instance repository

No response

Screenshots

No response

greeeen-dev commented 3 months ago

Fixed, v3 now uses tomli and tomli_w instead of toml.