Updated Rules and Config Path

This commit is contained in:
Ahmad 2024-08-13 00:26:36 -04:00
parent c27f1aaba5
commit 7541a6a195
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
5 changed files with 71 additions and 11 deletions

View file

@ -1,8 +1,8 @@
import { REST, Routes } from 'discord.js';
import config from '../config.json' assert { type: 'json' };
import fs from 'fs';
import path from 'path';
const config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
const { token, clientId, guildId } = config;
const __dirname = path.resolve();