cloudservices/src/commands/securesign.ts

30 lines
1006 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 21:57:33 -05:00
import ActivateKey from './securesign_activatekey';
2019-11-19 10:45:22 -05:00
import CreateCrt from './securesign_createcrt';
2019-12-27 22:12:14 -05:00
import Alliace from './securesign_alliance';
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-12-27 22:12:14 -05:00
this.subcmds = [Build, Init, Account, ActivateKey, CreateCrt, Alliace];
2020-03-28 04:58:14 -04:00
this.enabled = false;
2019-11-16 17:27:51 -05:00
}
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);
}
}
}