Python webserver snippet

less than a min read

from flask import Flask from threading import Thread

app=Flask("")

@app.route("/") def index(): return "Bot is running"

Thread(target=app.run,args=("0.0.0.0",8080)).start()

#snippet#python
  • Loading comments...