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 { REST, Routes } = require('discord.js');
const { clientId, guildId, token } = require('./config.json');
const env = require('dotenv').config();
const token = process.env.TOKEN;
const clientId = process.env.CLIENTID;
const fs = require('node:fs');