chore: rearranged imports
This commit is contained in:
parent
121a62b37e
commit
6b22ebdb9c
1 changed files with 3 additions and 3 deletions
|
@ -17,13 +17,13 @@
|
|||
require('module-alias/register');
|
||||
|
||||
import process from 'process';
|
||||
import { Client } from 'discord.js';
|
||||
import figlet from 'figlet';
|
||||
import gradient from 'gradient-string';
|
||||
import config from 'config';
|
||||
import chalk from 'chalk';
|
||||
import { Validator } from 'jsonschema';
|
||||
import { DateTime } from 'luxon';
|
||||
import chalk from 'chalk';
|
||||
import { Client } from 'discord.js';
|
||||
import { debug, error, info, verbose } from '@utils/logger';
|
||||
import { ELoggingScope } from '@utils/types';
|
||||
import { Defaults } from '@utils/defaults';
|
||||
|
@ -39,7 +39,7 @@ const validate = schemaValidator.validate(mergedConfig, Defaults.configSchema);
|
|||
if (validate.valid) {
|
||||
debug('Config matches JSON schema', ELoggingScope.Startup);
|
||||
} else {
|
||||
// Manually send fatal message in case someone messes up the logLevel JSON schema
|
||||
// Manually send fatal message in case someone messes up the logLevel config
|
||||
const message = `Found some errors with the config! Please check errors below.\n${validate.errors}`;
|
||||
|
||||
const date = DateTime.now().toLocal().setLocale(Intl.DateTimeFormat().resolvedOptions().locale).toFormat('yyyy-LL-dd HH:mm:ss');
|
||||
|
|
Reference in a new issue