mirror of
https://github.com/LeviSnoot/MediaFixer.git
synced 2024-12-03 18:20: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
|
// Require the necessary discord.js classes
|
||||||
const { Client, GatewayIntentBits } = require('discord.js');
|
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');
|
const http = require('http');
|
||||||
// Create a new client instance
|
// Create a new client instance
|
||||||
const client = new Client({
|
const client = new Client({
|
||||||
|
@ -15,7 +15,7 @@ http.createServer((req, res) => {
|
||||||
res.writeHead(200, { 'Content-type': 'text/plain' });
|
res.writeHead(200, { 'Content-type': 'text/plain' });
|
||||||
res.write('Hey');
|
res.write('Hey');
|
||||||
res.end();
|
res.end();
|
||||||
}).listen(4000);
|
}).listen(port);
|
||||||
|
|
||||||
// When the client is ready, run this code (only once)
|
// When the client is ready, run this code (only once)
|
||||||
client.once('ready', () => {
|
client.once('ready', () => {
|
||||||
|
|
Loading…
Reference in a new issue