From 2183b4d69aed4544dfa4665ba9f6dc87c4db51e0 Mon Sep 17 00:00:00 2001 From: Osi ic <96474947+osiic@users.noreply.github.com> Date: Sun, 24 Sep 2023 13:33:35 +0700 Subject: [PATCH] delete(server): file vercel & express js (#14) --- index.js | 1 - lib/express.js | 14 -------------- vercel.json | 15 --------------- 3 files changed, 30 deletions(-) delete mode 100644 lib/express.js delete mode 100644 vercel.json diff --git a/index.js b/index.js index 88088ee..2a2cdab 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,4 @@ require("dotenv").config(); -require("./lib/express.js"); const { DISCORD_TOKEN, APPLICATION_ID, GUILD_ID } = process.env; const fs = require("node:fs"); diff --git a/lib/express.js b/lib/express.js deleted file mode 100644 index 604282c..0000000 --- a/lib/express.js +++ /dev/null @@ -1,14 +0,0 @@ -//ExpressJS -const express = require("express"); -const app = express(); -const port = 3000; - -//<========== Start Expressjs ==========> -app.get("/", (req, res) => { - res.send("Bot in ready"); -}); - -app.listen(port, () => - console.log(`Example app listening on port http://127.0.0.1:${port}/`), -); -//<========== End Expressjs ==========> diff --git a/vercel.json b/vercel.json deleted file mode 100644 index e8eaad7..0000000 --- a/vercel.json +++ /dev/null @@ -1,15 +0,0 @@ -{ - "version": 2, - "builds": [ - { - "src": "./index.js", - "use": "@vercel/node" - } - ], - "routes": [ - { - "src": "/(.*)", - "dest": "/" - } - ] -}