Just-Some-Bots / MusicBot

:musical_note: The original MusicBot for Discord (formerly SexualRhinoceros/MusicBot)
https://just-some-bots.github.io/MusicBot/
MIT License
3.12k stars 2.35k forks source link

Refactor config internals. #2389

Closed itsTheFae closed 7 months ago

itsTheFae commented 7 months ago

Description

This PR focuses on refactor of the bots internal config and server (specific) data handling. It also adds the ground work for song and user block list features, which will be implemented in a later PR. (consequently they and the previous blacklist feature will not be working in this PR!)

Most of the file paths have been converted to constants, so they are both easier to fiddle with and easier to maintain.

An ExtendedConfigParser class has been added to help in reading and validating config into their expected types. Permissions config now also uses the extended config parser for consistency sake.