mirror of
https://github.com/ahmadk953/poixpixel-discord-bot.git
synced 2025-05-02 03:39:39 +00:00
Updated Rules and Config Path
This commit is contained in:
parent
c27f1aaba5
commit
7541a6a195
5 changed files with 71 additions and 11 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue