1
0
Fork 0
refactor/models
Matthew 2019-11-17 00:50:01 -05:00
parent eab054c12a
commit deac75184b
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 4 additions and 4 deletions

View File

@ -1,3 +1,4 @@
/* eslint-disable consistent-return */
import { Message } from 'eris'; import { Message } from 'eris';
import { Command } from '../class'; import { Command } from '../class';
import { Client } from '..'; import { Client } from '..';
@ -6,13 +7,12 @@ export default class Bearer extends Command {
constructor(client: Client) { constructor(client: Client) {
super(client); super(client);
this.name = 'bearer'; this.name = 'bearer';
this.description = 'Creates a new bearer token.'; this.description = 'Creates a bearer token.';
this.usage = `Run ${this.client.config.prefix}bearer`; this.usage = `${this.client.config.prefix}bearer`;
this.aliases = ['token']; this.guildOnly = false;
this.enabled = true; this.enabled = true;
} }
// eslint-disable-next-line consistent-return
public async run(message: Message) { public async run(message: Message) {
try { try {
const account = await this.client.db.Account.findOne({ userID: message.author.id }); const account = await this.client.db.Account.findOne({ userID: message.author.id });