forked from engineering/cloudservices
add basis for lock command and emoji stores
parent
f921cdd20e
commit
8156657a95
|
@ -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...***`);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,5 @@
|
|||
export default {
|
||||
success: '<:modSuccess:578750988907970567>',
|
||||
loading: '<a:modloading:588607353935364106>',
|
||||
error: '<:modError:578750737920688128',
|
||||
};
|
Loading…
Reference in New Issue