-
Notifications
You must be signed in to change notification settings - Fork 8
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
feat/improve configuration #75
Commits on Oct 4, 2021
-
Configuration menu - View commit details
-
Copy full SHA for b5c5417 - Browse repository at this point
Copy the full SHA b5c5417View commit details -
config: remove config_default.toml since its now part of the classes
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6a1b0c2 - Browse repository at this point
Copy the full SHA 6a1b0c2View commit details -
fix: add missing items to the configuration
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 5afc196 - Browse repository at this point
Copy the full SHA 5afc196View commit details -
fix: have a test token in the pytest env
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f8fabf5 - Browse repository at this point
Copy the full SHA f8fabf5View commit details -
enable slots on cfg classes, fix colour converter, properly prevent t…
…oken from being changed Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6cc4e20 - Browse repository at this point
Copy the full SHA 6cc4e20View commit details -
fix: remove unused class definitions
when converting to a marshmallow schema, desert does not use class defined Meta classes Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 82b1c73 - Browse repository at this point
Copy the full SHA 82b1c73View commit details -
config: add autogenerated default cfg toml file
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4a80406 - Browse repository at this point
Copy the full SHA 4a80406View commit details -
fix: properly deserialize discord.Colour to a string representation
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 311ff54 - Browse repository at this point
Copy the full SHA 311ff54View commit details -
feat: add configuration via a yaml cfg file
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 62aa7dc - Browse repository at this point
Copy the full SHA 62aa7dcView commit details -
fix: allow log level 50, as documented
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for e4d9e1e - Browse repository at this point
Copy the full SHA e4d9e1eView commit details -
feat: made testable config system by refactor config file loading
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 70128af - Browse repository at this point
Copy the full SHA 70128afView commit details -
tools: add pre-commit hook to automatically export default config
if any modmail configuration file is edited, a pre-commit hook will run to check that the autogenerated files are up-to-date Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4707d6c - Browse repository at this point
Copy the full SHA 4707d6cView commit details -
tools: automatically export required environment varaibles to .env.te…
…mplate Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 26cc817 - Browse repository at this point
Copy the full SHA 26cc817View commit details -
tools: add app.json to configuration exports
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for b8d7080 - Browse repository at this point
Copy the full SHA b8d7080View commit details -
minor: manaually update references to configuration files
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 19ddc22 - Browse repository at this point
Copy the full SHA 19ddc22View commit details -
fix: add missing modmail dependencies to additional hook dependencies
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 06aad80 - Browse repository at this point
Copy the full SHA 06aad80View commit details -
fix: no configuration files now loads the default config
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for cc50262 - Browse repository at this point
Copy the full SHA cc50262View commit details -
fix: create a Config instance when adding it to the bot
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bdc7d42 - Browse repository at this point
Copy the full SHA bdc7d42View commit details -
fix: load prefix from modmail_config.toml if not in .env
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 29de36e - Browse repository at this point
Copy the full SHA 29de36eView commit details -
fix: ignore extra configuration variables
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2166f8c - Browse repository at this point
Copy the full SHA 2166f8cView commit details -
minor: use attr helper method instead of reimplementing it
checked with a debug command while in a debug session '{x for x in attr.fields(klass)} == attribs' is True. They are exactly the same, so I've switched to using the attr method instead of rolling my own. Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for be6b698 - Browse repository at this point
Copy the full SHA be6b698View commit details -
chore: switch _load_config to pack positional args rather than requir…
…e an iterable Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4a367c4 - Browse repository at this point
Copy the full SHA 4a367c4View commit details -
fix: rewrite environment variable parser to support all configuration…
… options Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4e085d7 - Browse repository at this point
Copy the full SHA 4e085d7View commit details -
feat: add ConfigMetadata part 1
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 4495938 - Browse repository at this point
Copy the full SHA 4495938View commit details -
fix recursive dict update overriding set values
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0085f2a - Browse repository at this point
Copy the full SHA 0085f2aView commit details -
chore: update export docstring
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9417d3c - Browse repository at this point
Copy the full SHA 9417d3cView commit details -
fix: respect priorty of configuration sources
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for bb1d956 - Browse repository at this point
Copy the full SHA bb1d956View commit details -
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d5f1290 - Browse repository at this point
Copy the full SHA d5f1290View commit details -
nit: rename config class Bot to BotCfg to prevent future confusion
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for f3c3326 - Browse repository at this point
Copy the full SHA f3c3326View commit details -
fix: add ConfigMetadata part 2
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 6e14be0 - Browse repository at this point
Copy the full SHA 6e14be0View commit details -
chore: remove unused dict manipulation method
removed the now defunct _recursive_dict_update method Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for c05e0bb - Browse repository at this point
Copy the full SHA c05e0bbView commit details -
chore: implement new metadata options on cfg default export
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 444aca1 - Browse repository at this point
Copy the full SHA 444aca1View commit details -
tests: add config loading tests
test if the cofngiruation properly reads from provided files Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 014e9aa - Browse repository at this point
Copy the full SHA 014e9aaView commit details -
feat: add configuration manager cog
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 2a2b9dc - Browse repository at this point
Copy the full SHA 2a2b9dcView commit details -
migrate some existing values to new configuration
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 9eeee2e - Browse repository at this point
Copy the full SHA 9eeee2eView commit details -
minor: hide frozen values which can't be changed from the configuration
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for d6cbf86 - Browse repository at this point
Copy the full SHA d6cbf86View commit details -
feat: rudimentary setting and getting configuration status
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 249fa5e - Browse repository at this point
Copy the full SHA 249fa5eView commit details -
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a3402a8 - Browse repository at this point
Copy the full SHA a3402a8View commit details -
fix: don't load the .env file to the environment
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 21a46d4 - Browse repository at this point
Copy the full SHA 21a46d4View commit details -
minor: change config pre-commit hook to exit with 1 if files edited
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for a22f51a - Browse repository at this point
Copy the full SHA a22f51aView commit details -
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 1c7dd19 - Browse repository at this point
Copy the full SHA 1c7dd19View commit details -
config: allow emojis to be set (needs more work)
Signed-off-by: onerandomusername <genericusername414+git@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for dd0e287 - Browse repository at this point
Copy the full SHA dd0e287View commit details -
Configuration menu - View commit details
-
Copy full SHA for 76ff3cd - Browse repository at this point
Copy the full SHA 76ff3cdView commit details -
Configuration menu - View commit details
-
Copy full SHA for 9409421 - Browse repository at this point
Copy the full SHA 9409421View commit details -
Configuration menu - View commit details
-
Copy full SHA for 627e650 - Browse repository at this point
Copy the full SHA 627e650View commit details
Commits on Nov 7, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 4b8d288 - Browse repository at this point
Copy the full SHA 4b8d288View commit details -
Configuration menu - View commit details
-
Copy full SHA for 94b14e0 - Browse repository at this point
Copy the full SHA 94b14e0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4117dcc - Browse repository at this point
Copy the full SHA 4117dccView commit details
Commits on Nov 15, 2021
-
Configuration menu - View commit details
-
Copy full SHA for 7743899 - Browse repository at this point
Copy the full SHA 7743899View commit details -
Configuration menu - View commit details
-
Copy full SHA for 003177e - Browse repository at this point
Copy the full SHA 003177eView commit details -
Configuration menu - View commit details
-
Copy full SHA for b4e0b7d - Browse repository at this point
Copy the full SHA b4e0b7dView commit details -
Configuration menu - View commit details
-
Copy full SHA for d644a96 - Browse repository at this point
Copy the full SHA d644a96View commit details -
Configuration menu - View commit details
-
Copy full SHA for 52a339d - Browse repository at this point
Copy the full SHA 52a339dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0937a13 - Browse repository at this point
Copy the full SHA 0937a13View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c60d4c - Browse repository at this point
Copy the full SHA 3c60d4cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 5ad572d - Browse repository at this point
Copy the full SHA 5ad572dView commit details
Commits on Nov 16, 2021
-
fix: use commands.run_converters() in the configuration manager
ensures that we use the cache and special conversion methods to convert variables this means that all of the varaible conversion is handled by discord.py all conversion errors are propagated outwards and caught by our error handler
Configuration menu - View commit details
-
Copy full SHA for 8bc7c27 - Browse repository at this point
Copy the full SHA 8bc7c27View commit details -
Configuration menu - View commit details
-
Copy full SHA for 263ad6b - Browse repository at this point
Copy the full SHA 263ad6bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0a596b4 - Browse repository at this point
Copy the full SHA 0a596b4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 81c08da - Browse repository at this point
Copy the full SHA 81c08daView commit details -
Configuration menu - View commit details
-
Copy full SHA for 196d2a8 - Browse repository at this point
Copy the full SHA 196d2a8View commit details -
nits: standardize naming and make class names more self explanatory
cfg, config, configuration... why so many similarily named classes???
Configuration menu - View commit details
-
Copy full SHA for ebcaf94 - Browse repository at this point
Copy the full SHA ebcaf94View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2fd074c - Browse repository at this point
Copy the full SHA 2fd074cView commit details -
Configuration menu - View commit details
-
Copy full SHA for fa02b34 - Browse repository at this point
Copy the full SHA fa02b34View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3d1986d - Browse repository at this point
Copy the full SHA 3d1986dView commit details -
use factories to generate mutable classes and add more logging
tests: mark xfail the test for default config caching
Configuration menu - View commit details
-
Copy full SHA for ff04a5a - Browse repository at this point
Copy the full SHA ff04a5aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 258fa1b - Browse repository at this point
Copy the full SHA 258fa1bView commit details -
Configuration menu - View commit details
-
Copy full SHA for bfe641c - Browse repository at this point
Copy the full SHA bfe641cView commit details
Commits on Nov 21, 2021
-
Configuration menu - View commit details
-
Copy full SHA for fe53cf7 - Browse repository at this point
Copy the full SHA fe53cf7View commit details -
Configuration menu - View commit details
-
Copy full SHA for 4e7fb22 - Browse repository at this point
Copy the full SHA 4e7fb22View commit details -
Configuration menu - View commit details
-
Copy full SHA for dd2f16c - Browse repository at this point
Copy the full SHA dd2f16cView commit details -
Configuration menu - View commit details
-
Copy full SHA for 03fd57f - Browse repository at this point
Copy the full SHA 03fd57fView commit details
Commits on Nov 25, 2021
-
Configuration menu - View commit details
-
Copy full SHA for f0ec067 - Browse repository at this point
Copy the full SHA f0ec067View commit details
Commits on Jan 2, 2022
-
restructuring, using 'startswith', other updates
Configuration menu - View commit details
-
Copy full SHA for 09a33d4 - Browse repository at this point
Copy the full SHA 09a33d4View commit details -
Configuration menu - View commit details
-
Copy full SHA for 8d18ccc - Browse repository at this point
Copy the full SHA 8d18cccView commit details
Commits on Apr 21, 2022
-
Configuration menu - View commit details
-
Copy full SHA for 4087767 - Browse repository at this point
Copy the full SHA 4087767View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5911ff8 - Browse repository at this point
Copy the full SHA 5911ff8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 768277e - Browse repository at this point
Copy the full SHA 768277eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 62e82fa - Browse repository at this point
Copy the full SHA 62e82faView commit details -
Configuration menu - View commit details
-
Copy full SHA for 4644d76 - Browse repository at this point
Copy the full SHA 4644d76View commit details