Skip to content

Commit

Permalink
fix(Command): AxonCore support (sbcmd init)
Browse files Browse the repository at this point in the history
  • Loading branch information
Khaaz committed Mar 21, 2020
1 parent 826683e commit 1de5195
Show file tree
Hide file tree
Showing 11 changed files with 22 additions and 22 deletions.
15 changes: 9 additions & 6 deletions src/modules/CodeAmis/commands/CodeAmi.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ class CodeAmi extends Command {
this.aliases = ['codeami', 'ca'];

this.hasSubcmd = true;
this.subcmds = [
Delete,
DS,
ACPC,
Switch,
];

this.info = {
owners: ['KhaaZ'],
Expand All @@ -37,6 +31,15 @@ class CodeAmi extends Command {
} );
}

init() {
return [
Delete,
DS,
ACPC,
Switch,
];
}

async execute( { msg, args } ) {
const user = args.length === 0
? msg.author
Expand Down
1 change: 0 additions & 1 deletion src/modules/CodeAmis/commands/CodeAmi_ACPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class CodeAmiACPC extends Command {
this.label = 'acpc';
this.aliases = ['acpc', 'ACPC'];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down
1 change: 0 additions & 1 deletion src/modules/CodeAmis/commands/CodeAmi_DS.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class CodeAmiDS extends Command {
'3DS',
];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down
16 changes: 9 additions & 7 deletions src/modules/CodeAmis/commands/CodeAmi_Delete.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@ class CodeAmiDelete extends Command {
this.label = 'delete';
this.aliases = ['remove', 'suppr'];

this.isSubcmd = true;
this.hasSubcmd = true;
this.subcmds = [
DS,
ACPC,
Switch,
All,
];

this.info = {
owners: ['KhaaZ'],
Expand All @@ -34,6 +27,15 @@ class CodeAmiDelete extends Command {
} );
}

init() {
return [
DS,
ACPC,
Switch,
All,
];
}

async execute(env) {
return this.sendHelp(env);
}
Expand Down
1 change: 0 additions & 1 deletion src/modules/CodeAmis/commands/CodeAmi_Delete_ACPC.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class CodeAmiDeleteACPC extends Command {
this.label = 'acpc';
this.aliases = ['acpc', 'ACPC'];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down
1 change: 0 additions & 1 deletion src/modules/CodeAmis/commands/CodeAmi_Delete_All.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class CodeAmiDeleteAll extends Command {
this.label = 'all';
this.aliases = ['all'];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down
1 change: 0 additions & 1 deletion src/modules/CodeAmis/commands/CodeAmi_Delete_DS.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class CodeAmiDeleteDS extends Command {
'3DS',
];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down
1 change: 0 additions & 1 deletion src/modules/CodeAmis/commands/CodeAmi_Delete_Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class CodeAmiDeleteSwitch extends Command {
this.label = 'switch';
this.aliases = ['switch'];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down
1 change: 0 additions & 1 deletion src/modules/CodeAmis/commands/CodeAmi_Switch.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class CodeAmiSwitch extends Command {
this.label = 'switch';
this.aliases = ['switch'];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down
5 changes: 4 additions & 1 deletion src/modules/Core/commands/Ping.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ class Ping extends Command {
];

this.hasSubcmd = true;
this.subcmds = [Pong];

this.info = {
owners: ['KhaaZ'],
Expand All @@ -30,6 +29,10 @@ class Ping extends Command {
} );
}

init() {
return [Pong];
}

async execute( { msg } ) {
const start = Date.now();
const mess = await this.sendMessage(msg.channel, 'Pong! ');
Expand Down
1 change: 0 additions & 1 deletion src/modules/Core/commands/Ping_Pong.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ class Pong extends Command {
this.label = 'pong';
this.aliases = ['pong'];

this.isSubcmd = true;
this.hasSubcmd = false;

this.info = {
Expand Down

0 comments on commit 1de5195

Please sign in to comment.