Skip to content
This repository has been archived by the owner on Apr 19, 2023. It is now read-only.

Configuration command #6

Open
cchudant opened this issue May 30, 2018 · 0 comments
Open

Configuration command #6

cchudant opened this issue May 30, 2018 · 0 comments
Labels
enhancement New feature or request

Comments

@cchudant
Copy link
Contributor

hey how about a !conf command?

3 args:

  • [file]: the file to edit
  • [key]: the key to edit / set
  • [value]: the value to set

of course we need to check if the sender is owner (of the bot) before doing any change

that would meen the value should be json5-parsed to enable values like [55, 11] and objects and more
if the value is undefined then we should delete the key (or comment it like we do when we generate config file)

@cchudant cchudant added the enhancement New feature or request label May 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant