1
0
Fork 0

Import export tidy

refactor/models
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", "no-restricted-syntax": "off",
"camelcase": "off", "camelcase": "off",
"indent": "warn", "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 mongoose from 'mongoose';
import fs from 'fs-extra'; import fs from 'fs-extra';
import path from 'path'; import path from 'path';
import config from './config.json'; import { config, Util } from '.';
import Account, { AccountInterface } from './models/Account'; import { Account, AccountInterface, Moderation, ModerationInterface } from './models';
import Moderation, { ModerationInterface } from './models/Moderation'; import { emojis } from './stores';
import emojis from './stores/emojis'; import { Command } from './class';
import Util from './Util';
import Command from './class/Command';
export default class Client extends Eris.Client { export default class Client extends Eris.Client {

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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