Save-Restricted-Content-Bot-v3/app.py
2025-03-16 13:45:59 +05:30

18 lines
591 B
Python

# Copyright (c) 2025 devgagan : https://github.com/devgaganin.
# Licensed under the GNU General Public License v3.0.
# See LICENSE file in the repository root for full license text.
import os
from flask import Flask, render_template
app = Flask(__name__)
@app.route("/")
def welcome():
# Render the welcome page with animated "Team SPY" text
return render_template("welcome.html")
if __name__ == "__main__":
# Default to port 5000 if PORT is not set in the environment
port = int(os.environ.get("PORT", 5000))
app.run(host="0.0.0.0", port=port)