Added port config

This commit is contained in:
Levi 2022-09-24 16:18:10 +02:00 committed by GitHub
parent 68f547baa9
commit 882c440bdd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1,6 +1,6 @@
// Require the necessary discord.js classes
const { Client, GatewayIntentBits } = require('discord.js');
const { token, tweetParser, instaParser } = require('./config.json');
const { token, port, tweetParser, instaParser } = require('./config.json');
const http = require('http');
// Create a new client instance
const client = new Client({
@ -15,7 +15,7 @@ http.createServer((req, res) => {
res.writeHead(200, { 'Content-type': 'text/plain' });
res.write('Hey');
res.end();
}).listen(4000);
}).listen(port);
// When the client is ready, run this code (only once)
client.once('ready', () => {