-
Notifications
You must be signed in to change notification settings - Fork 741
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
Proposal: change in configuration settings. #192
Comments
I agree with this. Since there are no other issues regarding config right now, I'd like to add that using click to handle CLI arguments would help make things consistent in that way. |
There is a super simple solution to this. In your config, swap 0 for false, and 1 for true. Though I agree that some of options are confusingly named - leading to a double-negatives (disablebullonly = false means....I've enabled what?) |
I am open for suggestions. I just don't want to break existing bots when updated without updating the configs. Maybe if we can detect and migrate the settings automatically for the users this would be good. What do you think? |
So I think you should Introduce versioning. Say we are on version 0.1 now, introduce the extra parameters at the next release - v0.2 - then commence deprecating those older parameters by issuing warnings in the logs when they are used. |
This issue is very dear to me, too, and I was about to open a new one on it. The current situation of negative setting names that need to be negated to be activated or deactivated is unfortunate. It inevitably leads to erroneous usage. Has definitely already happened to me, and I'm a software developer. I don't have the ability to cleanly resolve double-negative settings in my brain, and even less so for even less experienced users. The solution is simple: Rename all negative settings to positive, and turn around their defaults. Turn You can keep parsing the old setting names while simply adding and publicly communicating only the new ones without breaking compatibility. You already use a method for querying each setting in your code, so you don't even need to touch your code generally, only the setting implementation. You should raise an error if both old and new setting names are present in the config. It's only a few settings that are affected. |
Any volunteers to help me with this? |
Hi, I would like to propose a change in the way custom settings are configured.
Currently it is very unclear to know which settings are enabled and which are not since sometimes setting 0 enables a functionality and sometimes disables it.
I propose that the custom configuration settings should always be 0 Disable and 1 Enable. This way there will be no confusion.
I take this opportunity to congratulate the great work you are doing.
The text was updated successfully, but these errors were encountered: