有没有一种方法可以在不崩溃的情况下从另一个文件启动和停止discord.py bot?

I have 3 discord.py bots running at the same time and when i have to update one, i have to stop them all in Task Manager

I created a Bot manager, which is a Tkinter window which can stop and start all three bots

但是,当我按下任意一个机器人上的“开始”按钮时,它启动都没有错误,但应用程序崩溃并停止了该机器人

我还没有任何解决此问题的方法

谁能告诉我如何阻止应用程序和机器人崩溃?