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

Change configuration through chat #5

Open
TurqW opened this issue Sep 26, 2018 · 4 comments
Open

Change configuration through chat #5

TurqW opened this issue Sep 26, 2018 · 4 comments
Labels
enhancement New feature or request new module involves adding a whole new module or set of commands

Comments

@TurqW
Copy link
Owner

TurqW commented Sep 26, 2018

It would be nice to be able to change the configuration through chat, particularly around the list of roles or the list of enabled generators for a given server.

@TurqW TurqW added new module involves adding a whole new module or set of commands enhancement New feature or request labels Nov 17, 2019
@TurqW
Copy link
Owner Author

TurqW commented Apr 13, 2020

Alternately, a web portal could be built instead.

@TurqW
Copy link
Owner Author

TurqW commented Jan 8, 2022

Slash commands - and all the bonuses that come with, like autocomplete - this may be actually plausible to do in chat.

  • /config upload: uploads a yaml or json file to be this server's config; may also be able to merge new files with existing config.
  • /config print: prints the current server config (including defaults? or that could be an optional flag) as yaml
  • /config add <autocomplete top-level options> <autocomplete their sub-options> <etc>: adds or overwrites a piece of configuration (overwrites probably require confirmation)
  • /config help <all the same autocompletes as above>: gives a detailed description of what that key is for
  • /config list would give a navigable list, kind of like my deletable lists but limited to one selection at a time, probably with a "deeper" and a "delete" button. Probably some internal logic to prevent certain things from being deleted, maybe even a full-on "put the help message for this thing into the 'are you sure' dialog" or something

@diziara
Copy link
Collaborator

diziara commented Jan 8, 2022

If you do this, would it be the visible only to the person doing it set up, like you are already doing on some other commands? So that the admin/s aren't flashing the bot config all over the place?

@TurqW
Copy link
Owner Author

TurqW commented Jan 9, 2022

Yeah, these would definitely all be ephemeral.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request new module involves adding a whole new module or set of commands
Projects
None yet
Development

No branches or pull requests

2 participants