Moved webport to .env file

This commit is contained in:
ultimateplayer1999 2023-05-03 09:46:14 +00:00
parent 8cff6d022b
commit 7a84de548a
2 changed files with 10 additions and 5 deletions

View File

@ -1,7 +1,12 @@
# BASIC BOT INFO
TOKEN=<bottoken>
#Mongodb cloud
#Mongodb
DB_URL=<optional>
MONGODBUSER=<Username>
MONGODBPASS=<Pass>
MONGODBCLUSTER=<cluster>
DATABASE=<dbname>
#Webstuff
PORT=<port>

View File

@ -8,7 +8,7 @@ var cron = require('node-cron');
const moment = require('moment');
const express = require("express");
const app = express();
const port = 40005
const port = process.env.PORT
const cwd = process.cwd()
module.exports = async (client) => {
@ -96,12 +96,12 @@ module.exports = async (client) => {
});
// Register for a single guild
await client.guilds.cache.get("239352426451304449").commands.set(arrayOfSlashCommands);
// await client.guilds.cache.get("239352426451304449").commands.set(arrayOfSlashCommands);
// Register for a single guild
await client.guilds.cache.get("1075800713323610142").commands.set(arrayOfSlashCommands);
// await client.guilds.cache.get("1075800713323610142").commands.set(arrayOfSlashCommands);
// Register for all the guilds the bot is in
// await client.application.commands.set(arrayOfSlashCommands);
await client.application.commands.set(arrayOfSlashCommands);
});
// Error handling