cloudservices/src/commands/securesign.ts

27 lines
827 B
TypeScript
Raw Normal View History

2019-11-16 17:27:51 -05:00
import { Message } from 'eris';
import { Command } from '../class';
import { Client } from '..';
import Build from './securesign_build';
import Init from './securesign_init';
2019-11-16 20:38:05 -05:00
import Account from './securesign_account';
2019-11-16 17:27:51 -05:00
export default class SecureSign extends Command {
constructor(client: Client) {
super(client);
this.name = 'securesign';
this.description = 'Runs SecureSign CLI commands';
this.usage = `Run ${this.client.config.prefix}${this.name} [subcommand] for usage information`;
this.aliases = ['ss'];
2019-11-16 20:38:05 -05:00
this.subcmds = [Build, Init, Account];
2019-11-16 17:27:51 -05:00
this.enabled = true;
}
public async run(message: Message) {
try {
return this.client.commands.get('help').run(message, [this.name]);
} catch (error) {
return this.client.util.handleError(error, message, this);
}
}
}