Archived
0
0
Fork 0

chore: rearranged imports

This commit is contained in:
Daryl Ronningen 2021-06-19 16:38:11 -07:00
parent 121a62b37e
commit 6b22ebdb9c
Signed by: Daryl Ronningen
GPG key ID: FD23F0C934A5EC6B

View file

@ -17,13 +17,13 @@
require('module-alias/register'); require('module-alias/register');
import process from 'process'; import process from 'process';
import { Client } from 'discord.js';
import figlet from 'figlet'; import figlet from 'figlet';
import gradient from 'gradient-string'; import gradient from 'gradient-string';
import config from 'config'; import config from 'config';
import chalk from 'chalk';
import { Validator } from 'jsonschema'; import { Validator } from 'jsonschema';
import { DateTime } from 'luxon'; import { DateTime } from 'luxon';
import chalk from 'chalk'; import { Client } from 'discord.js';
import { debug, error, info, verbose } from '@utils/logger'; import { debug, error, info, verbose } from '@utils/logger';
import { ELoggingScope } from '@utils/types'; import { ELoggingScope } from '@utils/types';
import { Defaults } from '@utils/defaults'; import { Defaults } from '@utils/defaults';
@ -39,7 +39,7 @@ const validate = schemaValidator.validate(mergedConfig, Defaults.configSchema);
if (validate.valid) { if (validate.valid) {
debug('Config matches JSON schema', ELoggingScope.Startup); debug('Config matches JSON schema', ELoggingScope.Startup);
} else { } 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 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'); const date = DateTime.now().toLocal().setLocale(Intl.DateTimeFormat().resolvedOptions().locale).toFormat('yyyy-LL-dd HH:mm:ss');