I'm wondering how would I run my 2 discord bots at once from main, app.py, file.
And after I kill that process (main file process), they both would stop.
Tried os.system, didn't work. Tried multiple subprocess.Popen, didn't work.
Am I doing something wrong?
How would I do that?
I think the good design is to have one bot per .py file. If they both need code that is in app.py then they should 'import' the common code. Doing that you can just run both bot1.py and bot2.py.
How to start multiple py files (2 discord bots) from one file at once