chore: update and clean up imports

This commit is contained in:
Ahmad 2025-04-13 16:48:18 -04:00
parent d9d5f087e7
commit 9aabe2885b
No known key found for this signature in database
GPG key ID: 8FD8A93530D182BF
30 changed files with 78 additions and 84 deletions

View file

@ -1,7 +1,8 @@
import { Config } from '../types/ConfigTypes.js';
import fs from 'node:fs';
import path from 'node:path';
import { Config } from '@/types/ConfigTypes.js';
/**
* Loads the config file from the root directory
* @returns - The loaded config object

View file

@ -1,6 +1,6 @@
import { Message } from 'discord.js';
import { getJson, setJson } from '../db/redis.js';
import { getJson, setJson } from '@/db/redis.js';
interface CountingData {
currentCount: number;

View file

@ -1,6 +1,6 @@
import { EmbedBuilder, Client } from 'discord.js';
import { getRandomUnusedFact, markFactAsUsed } from '../db/db.js';
import { getRandomUnusedFact, markFactAsUsed } from '@/db/db.js';
import { loadConfig } from './configLoader.js';
let isFactScheduled = false;

View file

@ -8,8 +8,8 @@ import {
getUserLevel,
getUserRank,
handleDbError,
} from '../db/db.js';
import * as schema from '../db/schema.js';
} from '@/db/db.js';
import * as schema from '@/db/schema.js';
import { loadConfig } from './configLoader.js';
import { roundRect } from './helpers.js';