GithubHelp home page GithubHelp logo

configparser write about botamusique HOT 1 CLOSED

azlux avatar azlux commented on June 6, 2024
configparser write

from botamusique.

Comments (1)

Lartza avatar Lartza commented on June 6, 2024
  1. Did not really even consider this as an issue. It's fairly normal to not be able to edit the configuration of a running program and we don't even have a way to load it on runtime (like a !reload command) so that that would be expected to be allowed. I did consider writing the config the moment it was changed but that wouldn't really change anything in this situation either. The way I see it this is fixed with either of my proposed solutions for the second issue.

  2. This I did have some thought about but didn't really consider it an issue. Since you think it is I see two potential solutions.

Keep a minimal and manual user configuration in configuration.user.ini that is loaded third in the initial configuration opening and keep writing to configuration.ini. This does cause .user.ini to override anything that has been saved to configuration.ini, this does cause it to override any volume the bot has saved for instance.

Or keep a minimal configuration file that is loaded second or third, but is written manually without configparser.write with any options that can be changed runtime. Loading it second or third each have their pros and cons.

from botamusique.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.