title: Running a Flask/Quart app with a Discord.py bot
body: <p>I am trying to make a Discord bot that listens for a webhook and sends messages in a discord channel when it receives a ping from the webhook. It seems that due to the way threads work in python, I cannot run both the Quart server and the Discord.py bot on the main thread. I am trying to migrate both the bot and server onto their own threads. Quart is an async implementation of Flask, so that thread would need to be async. Does anybody know how I can accomplish this? I have tried several methods none of which work</p>