xxxxxxxxxx
#python discord bot code above ^^
from flask import Flask
app = Flask(__name__)
@app.route('/')
def index():
return "Bot up and running"
if __name__ == '__main__':
app.run(host="0.0.0.0",debug=True,port=8080)
#also, run pip install flask in the terminal.
xxxxxxxxxx
//...Discord Bot Code Above ^^
const express = require('express')
const app = express();
const port = 3000;
app.get('/', (req, res) => {
res.send('Hello World!')
})
app.listen(port, () => {
console.log(`Example app listening at http://localhost:${port}`)
})