Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make config and data allow for optional values #40

Open
LachlanCourt opened this issue Sep 20, 2021 · 1 comment
Open

Make config and data allow for optional values #40

LachlanCourt opened this issue Sep 20, 2021 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@LachlanCourt
Copy link
Owner

config.json currently requires all fields to be filled and just be left blank if they are to be disabled. If they are to be disabled, it is cleaner to have them just not be included in the config file at all and have the reader give the necessary variables default values

@LachlanCourt LachlanCourt added enhancement New feature or request good first issue Good for newcomers labels Sep 20, 2021
@LachlanCourt LachlanCourt changed the title Make config allow for optional values Make config and data allow for optional values Jun 24, 2022
@LachlanCourt
Copy link
Owner Author

This works now, although the guild ID still needs to be defined in both config.json and data.dat even if they are just empty objects. Should be able to start up without any configuration. Will involve granting server administrators high level trusted role permissions, otherwise a server presence started with no config would not be able to do anything

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant