Moved from config json to .env

This commit is contained in:
2023-04-06 21:58:10 +02:00
parent 9d0e1e0d12
commit bf77f8c224
10 changed files with 26 additions and 10 deletions

View File

@@ -1,5 +1,7 @@
const { Client, GatewayIntentBits, Partials, ActivityType, Events, Collection } = require('discord.js');
const { token, mongoURI } = require('./config.json');
const env = require('dotenv').config();
const token = process.env.TOKEN;
const mongoURI = process.env.MONGOURI;
const { connect } = require('mongoose');
const path = require('path');
const fs = require('fs');