mirror of
https://github.com/LeviSnoot/MediaFixer.git
synced 2024-12-02 18:00:02 +01:00
Added port config
This commit is contained in:
parent
68f547baa9
commit
882c440bdd
1 changed files with 2 additions and 2 deletions
4
index.js
4
index.js
|
@ -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', () => {
|
||||
|
|
Loading…
Reference in a new issue