1
0
Fork 0

add basis for lock command and emoji stores

refactor/models
Matthew R 2019-10-14 23:35:30 -04:00
parent f921cdd20e
commit 8156657a95
No known key found for this signature in database
GPG Key ID: 97CA005641E9054C
2 changed files with 25 additions and 0 deletions

20
src/commands/lock.ts Normal file
View File

@ -0,0 +1,20 @@
import fs from 'fs-extra';
import { Message } from 'eris';
import Client from '../Client';
import Command from '../class/Command';
export default class Lock extends Command {
constructor(client: Client) {
super(client);
this.name = 'lock';
this.description = 'Locks an account.';
this.permissions = { roles: ['608095934399643649', '521312697896271873'] };
}
public async run(message: Message, args: string[]) {
let account = await this.client.db.Account.findOne({ account: args[0] });
if (!account) account = await this.client.db.Account.findOne({ userID: args[0] });
if (!account) return message.channel.createMessage(`***${this.client.stores.emojis.error} Cannot find user.***`);
const edit = await message.channel.createMessage(`***${this.client.stores.emojis.loading} Locking account...***`);
}
}

5
src/stores/emojis.ts Normal file
View File

@ -0,0 +1,5 @@
export default {
success: '<:modSuccess:578750988907970567>',
loading: '<a:modloading:588607353935364106>',
error: '<:modError:578750737920688128',
};