Skip to content

Instantly share code, notes, and snippets.

View qtqgyt's full-sized avatar
💭
qtqgyt.exe has stopped responding

qtqgyt

💭
qtqgyt.exe has stopped responding
  • 15:43 (UTC -06:00)
View GitHub Profile
from flask import Flask, request, render_template
import subprocess
app = Flask(__name__, static_folder='web', template_folder='../web/templates')
@app.route("/discord/auth/callback")
def handle_auth_callback():
# Extract the code parameter from the query parameters
code = request.args.get("code")