How to make Discord.py bot always online

I used this tutorial: https://youtu.be/SPTfmiYiuok

And when I pasted the code into the keep_alive.py file from https://docs.replit.com/repls/http-servers:
`from flask import Flask, render_template
app = Flask(name)

@app.route(’/’)
def index():
return render_template(“index.html”)

app.run(host=‘0.0.0.0’, port=8080)`
I got a package error. How can I fix this?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.