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,9 +1,9 @@
import fs from "node:fs";
import path from "node:path";
import { Client, Collection, Events, GatewayIntentBits } from "discord.js";
import config from "./config.json" assert { type: "json" };
import { deployCommands } from "./util/deployCommand.js";
const config = JSON.parse(fs.readFileSync('./config.json', 'utf8'));
const { token } = config;
const client: any = new Client({ intents: [GatewayIntentBits.Guilds] });