Baracchino-Della-Scuola / Bot

Undefined name detected PYL-E0602
Bug risk
Critical
3 months agoa year old
Undefined variable 'request'
10
11@app.route("/receive", methods=["GET", "POST"])
12def receive_hook():
13    data = json.loads(request.data)14    webhook = DiscordWebhook(url=os.environ["WEBHOOK"])
15
16    embed = DiscordEmbed(
Undefined variable 'Flask'
 5
 6dotenv.load_dotenv(".env")
 7
 8app = Flask("ghosthooks") 9
10
11@app.route("/receive", methods=["GET", "POST"])
Undefined variable 'bot'
14        self.tts = aiogTTS()
15
16    async def to_bytes(self, url):
17        async with bot.session.get(url) as r:18            res = await r.read()
19            return res
20
Undefined variable 'dance_loop'
 12                    source, after=lambda e: print("Player error: %s" % e) if e else None
 13                )
 14        else:
 15            dance_loop.stop() 16
 17    def __init__(self, bot):
 18        self.bot = bot