(Jul 13, 2022 02:35 PM)Riddled Wrote: I would like to see your subprocess implementation, my guess is that is vulnerable, the more proper/secure way to do it would be to create separate functions for each action and then to call these actions when the user enters a command or something. Though if it really is just between some really good friends, it's not to bad.. just know that it could be vulnerable.
I manually set the users file, so say its /var/bot/username/script.py
when someone says -start it just loads that filename and starts it, same for stop. there is no command line they can use and they cant edit anything. they cant stop/start other peoples work either
something like
if ctx.author.id = 134235325525:
file = something.py