Moved webport to .env file
This commit is contained in:
parent
8cff6d022b
commit
7a84de548a
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user