using Subprocess to avoid long-running task from disconnecting discord.py bot?
praw relies on the requests library, which is synchronous meaning that the code is blocking. This can cause your bot to freeze if the blocking code takes too long to execute. To get around this, a separate thread can be created that handles the blocking code. Below is an example of this. Note how blocking_function … Read more