edit responses for cwg and add data command

merge-requests/1/merge
Matthew 2019-10-28 20:30:55 -04:00
parent 5e556a5c4f
commit a2f0794838
No known key found for this signature in database
GPG Key ID: 766BE43AE75F7559
1 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@ export default class CWG extends Command {
} else if (args[0] === 'data') {
if (!args[1]) return this.client.commands.get('help').run(message, [this.name]);
const domain = await this.client.db.Domain.findOne({ $or: [{ domain: args[1] }, { port: args[1] }] });
if (!domain) return message.channel.createMessage(`***${this.client.stores.emojis.error} The domain or port you provided could not be found.***`);
const embed = new RichEmbed();
embed.setTitle('Domain Information');
embed.addField('Account Username', domain.account.username, true);