fix: Fixed most imports and some typescript changes

This commit is contained in:
Marius Begby committed 2023-08-27 00:39:03 +02:00
1 parent 1a7f800ba2
commit 0d9f4bd404
60 files changed
+488 -265

No files matched your search

+8 -7
View File
@@ -1,12 +1,14 @@
import config from 'config';
const embedOptions = config.get('embedOptions');
import { EmbedOptions } from '../../types/configTypes';
const embedOptions: EmbedOptions = config.get('embedOptions');
const systemOptions = config.get('systemOptions');
const presenceStatusOptions = config.get('presenceStatusOptions');
const loadTestOptions = config.get('loadTestOptions');
const { postBotStats } = require('../../utils/other/postBotStats.js');
const { startLoadTest } = require('../../utils/other/startLoadTest');
const { Events, EmbedBuilder } = require('discord.js');
const { v4: uuidv4 } = require('uuid');
import { postBotStats } from '../../utils/other/postBotStats';
import { startLoadTest } from '../../utils/other/startLoadTest';
import { Events, EmbedBuilder } from 'discord.js';
import { v4 as uuidv4 } from 'uuid';
import loggerModule from '../../services/logger';
module.exports = {
name: Events.ClientReady,
@@ -14,8 +16,7 @@ module.exports = {
once: false,
execute: async (client) => {
const executionId = uuidv4();
const logger = require('../../services/logger').child({
const logger = loggerModule.child({
source: 'ready.js',
module: 'event',
name: 'clientReady',