1
0
Fork 0
cloudservices/src/commands/lock.ts

21 lines
843 B
TypeScript
Raw Normal View History

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...***`);
}
}