ToransuShoujo / quesoqueue_plus

A queue system for Mario Maker 2
GNU General Public License v3.0
5 stars 3 forks source link

Configuration Validation #16

Closed liquidnya closed 2 years ago

liquidnya commented 2 years ago

Configuration validation on startup might be a good way to catch configuration errors early on and before the queue crashes, or could be a hint of why the bot crashed.

For example when setting up the channel configuration with the display name instead of the username, the bot will not work correctly and crash. On startup the channel name could be validated to check if it only contains only lowercase letters, numbers and underscores and log a warning if this is not the case. Other simple validation checks could also be done at startup.