Import export tidy

merge-requests/1/merge
Bsian 2019-10-16 01:34:13 +01:00
parent c2fa0ce2a7
commit 5a7b05d040
No known key found for this signature in database
GPG Key ID: 097FB9A291026091
8 changed files with 18 additions and 23 deletions

View File

@ -35,6 +35,7 @@
"no-restricted-syntax": "off",
"camelcase": "off",
"indent": "warn",
"object-curly-newline": "off"
"object-curly-newline": "off",
"import/prefer-default-export": "off"
}
}

View File

@ -4,12 +4,10 @@ import Eris from 'eris';
import mongoose from 'mongoose';
import fs from 'fs-extra';
import path from 'path';
import config from './config.json';
import Account, { AccountInterface } from './models/Account';
import Moderation, { ModerationInterface } from './models/Moderation';
import emojis from './stores/emojis';
import Util from './Util';
import Command from './class/Command';
import { config, Util } from '.';
import { Account, AccountInterface, Moderation, ModerationInterface } from './models';
import { emojis } from './stores';
import { Command } from './class';
export default class Client extends Eris.Client {

View File

@ -2,8 +2,8 @@ import { promisify } from 'util';
import childProcess from 'child_process';
import nodemailer from 'nodemailer';
import { Message } from 'eris';
import Client from './Client';
import Command from './class/Command';
import { Client } from '.';
import { Command } from './class';
export default class Util {
public client: Client;

View File

@ -1,5 +1,5 @@
import { Message } from 'eris';
import Client from '../Client';
import { Client } from '..';
export default class Command {
name: string

View File

@ -1,8 +1,7 @@
import fs from 'fs-extra';
import { Message } from 'eris';
import Client from '../Client';
import Command from '../class/Command';
import Util from '../Util';
import { Client, Util } from '..';
import { Command } from '../class';
export default class Lock extends Command {
util: Util = new Util(this.client)

View File

@ -1,9 +1,7 @@
import { Message } from 'eris';
import { createPaginationEmbed } from 'eris-pagination';
import Client from '../Client';
import Command from '../class/Command';
import RichEmbed from '../class/RichEmbed';
import Util from '../Util';
import { Client, Util } from '..';
import { Command, RichEmbed } from '../class';
export default class Modlogs extends Command {
util: Util = new Util(this.client)

View File

@ -1,7 +1,6 @@
import { Message } from 'eris';
import Client from '../Client';
import Command from '../class/Command';
import Util from '../Util';
import { Client, Util } from '..';
import { Command } from '../class';
export default class Ping extends Command {
util: Util = new Util(this.client)

View File

@ -1,9 +1,9 @@
import { Message, TextChannel } from 'eris';
import Client from '../Client';
import { prefix } from '../config.json';
import Util from '../Util';
import { Client, config, Util } from '..';
import Command from '../class/Command';
const { prefix } = config;
export default class {
client: Client