plsgivemeachane commited on
Commit
362e937
·
1 Parent(s): df0f7c8
Files changed (1) hide show
  1. app/index.ts +12 -1
app/index.ts CHANGED
@@ -4,6 +4,9 @@ import { Client, Collection, Events, GatewayIntentBits } from 'discord.js';
4
  import dotenv from 'dotenv';
5
  dotenv.config();
6
  const token = process.env.DISCORD_KEY as string;
 
 
 
7
 
8
  const client = new Client({ intents: [GatewayIntentBits.Guilds] });
9
  declare module "discord.js" {
@@ -56,4 +59,12 @@ client.on(Events.InteractionCreate, async interaction => {
56
  }
57
  });
58
 
59
- client.login(token);
 
 
 
 
 
 
 
 
 
4
  import dotenv from 'dotenv';
5
  dotenv.config();
6
  const token = process.env.DISCORD_KEY as string;
7
+ import express from 'express';
8
+
9
+ const app = express();
10
 
11
  const client = new Client({ intents: [GatewayIntentBits.Guilds] });
12
  declare module "discord.js" {
 
59
  }
60
  });
61
 
62
+ client.login(token);
63
+
64
+ app.get('/', (req, res) => {
65
+ res.send('Hello World!');
66
+ })
67
+
68
+ app.listen(7860, () => {
69
+ console.log('Listening on port 7860');
70
+ })