Added .env
This commit is contained in:
parent
2d0ea6d150
commit
d3bb042f43
1 changed files with 2 additions and 2 deletions
|
@ -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, () => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue