I'm making a Discord bot with a lot of commands that take a while to finish (like loops) so I'd like to also have a command that stops any actively running code. I've tried sys.exit but I don't want to have to restart the program each time before it will take another input. Anyone know what I can do?
https://stackoverflow.com/questions/66037679/python-discord-py-how-do-i-stop-all-running-code-but-not-stop-the-program February 04, 2021 at 08:21AM
没有评论:
发表评论