I finally implemented live loading the configs. If the json setting file is updated, the watchfiles library catches it and updates the commands, texts, etc… Only problem is that it works only once :P Ill fix it tomorrow probably.
Also, I got rid of the docker sdk and just went back to using asyncio subproc shells. I think this way is better because I can use the same function on LXC’s and VMs later on.
I am still using eval on the custom commands parts DX if anyone has an idea to replace eval it would be very appreciated! :)
Log in to leave a comment