Added .env

This commit is contained in:
nin0 2024-06-20 08:36:10 -04:00
parent 2d0ea6d150
commit d3bb042f43

View file

@ -4,10 +4,10 @@ import dotenv from "dotenv";
dotenv.config();
const app: Express = express();
const port = 23758;
const port = process.env.PORT;
app.get("/", (req: Request, res: Response) => {
res.send("Hey! This is the interaction server for my custom bot.");
res.send({ "type": 1 });
});
app.listen(port, () => {