1
0
Fork 0
refactor/models
Matthew 2020-10-06 23:10:25 -04:00
parent 05806398a9
commit eb2f9ac89b
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 3 additions and 2 deletions

View File

@ -1,3 +1,4 @@
/* eslint-disable no-useless-escape */
import { Message } from 'eris'; import { Message } from 'eris';
import { Client, Command, Report, RichEmbed } from '../class'; import { Client, Command, Report, RichEmbed } from '../class';
@ -23,7 +24,7 @@ export default class ApplyT2 extends Command {
const decision = await Report.tier2(account.userID, this.client.config.internalKey); const decision = await Report.tier2(account.userID, this.client.config.internalKey);
if (decision.status !== 'SUCCESS') { if (decision.status !== 'SUCCESS') {
await loading.delete(); await loading.delete();
this.success(message.channel, `__**Decision**__\n\n**Status:** ${decision.decision}\n**Processed by:** EDS (A*01)`); this.success(message.channel, `__**Decision**__\n\n**Status:** ${decision.decision}\n**Processed by:** EDS (A\*01)`);
if (decision.decision === 'APPROVED') { if (decision.decision === 'APPROVED') {
const tier = await this.client.db.Tier.findOne({ id: 2 }); const tier = await this.client.db.Tier.findOne({ id: 2 });
@ -46,7 +47,7 @@ export default class ApplyT2 extends Command {
return null; return null;
} }
await loading.delete(); await loading.delete();
return this.success(message.channel, `__**Decision**__\n\n**Status:** ${decision.decision}\n**Processed by:** EDS (A*01)\n\n\n*Pre-Declines will not result in a hard pull, and they may be due to a server issue or insufficient information. You may want to contact a Staff member for further information.*`); return this.success(message.channel, `__**Decision**__\n\n**Status:** ${decision.decision}\n**Processed by:** EDS (A\*01)\n\n\n*Pre-Declines will not result in a hard pull, and they may be due to a server issue or insufficient information. You may want to contact a Staff member for further information.*`);
} catch (error) { } catch (error) {
return this.client.util.handleError(error, message, this); return this.client.util.handleError(error, message, this);
} }