forked from engineering/cloudservices
major permissions change
parent
585b86f9a2
commit
86668ead8b
|
@ -9,7 +9,7 @@ export default class Announce extends Command {
|
||||||
this.description = 'Sends an announcement to all active terminals';
|
this.description = 'Sends an announcement to all active terminals';
|
||||||
this.usage = `${this.client.config.prefix}announce Hi there! | ${this.client.config.prefix}announce -e EMERGENCY!`;
|
this.usage = `${this.client.config.prefix}announce Hi there! | ${this.client.config.prefix}announce -e EMERGENCY!`;
|
||||||
this.aliases = ['ann'];
|
this.aliases = ['ann'];
|
||||||
this.permissions = { roles: ['662163685439045632'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default class Cloudflare extends Command {
|
||||||
this.name = 'cloudflare';
|
this.name = 'cloudflare';
|
||||||
this.description = 'Remove an entry from Cloudflare DNS records';
|
this.description = 'Remove an entry from Cloudflare DNS records';
|
||||||
this.permissions = {
|
this.permissions = {
|
||||||
roles: ['525441307037007902'],
|
roles: ['662163685439045632'],
|
||||||
};
|
};
|
||||||
this.aliases = ['cf'];
|
this.aliases = ['cf'];
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default class CreateAccount extends Command {
|
||||||
this.description = 'Create an account on the Cloud VM';
|
this.description = 'Create an account on the Cloud VM';
|
||||||
this.usage = `${this.client.config.prefix}createaccount [User ID] [Email] [Account name]`;
|
this.usage = `${this.client.config.prefix}createaccount [User ID] [Email] [Account name]`;
|
||||||
this.aliases = ['createacc', 'cacc', 'caccount', 'create'];
|
this.aliases = ['createacc', 'cacc', 'caccount', 'create'];
|
||||||
this.permissions = { roles: ['662163685439045632', '455972169449734144'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ export default class CWG_Create extends Command {
|
||||||
this.name = 'create';
|
this.name = 'create';
|
||||||
this.description = 'Bind a domain to the CWG';
|
this.description = 'Bind a domain to the CWG';
|
||||||
this.usage = `${this.client.config.prefix}cwg create [User ID | Username] [Domain] [Port] <Cert Chain> <Private Key> || Use snippets raw URL`;
|
this.usage = `${this.client.config.prefix}cwg create [User ID | Username] [Domain] [Port] <Cert Chain> <Private Key> || Use snippets raw URL`;
|
||||||
this.permissions = { roles: ['525441307037007902'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300'] };
|
||||||
this.aliases = ['bind'];
|
this.aliases = ['bind'];
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
this.urlRegex = /^[a-zA-Z0-9\-._~:/?#[\]@!$&'()*+,;=]+$/;
|
this.urlRegex = /^[a-zA-Z0-9\-._~:/?#[\]@!$&'()*+,;=]+$/;
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default class CWG_Data extends Command {
|
||||||
this.name = 'data';
|
this.name = 'data';
|
||||||
this.description = 'Check CWG data';
|
this.description = 'Check CWG data';
|
||||||
this.usage = `${this.client.config.prefix}cwg data [Domain | Port]`;
|
this.usage = `${this.client.config.prefix}cwg data [Domain | Port]`;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default class CWG_Delete extends Command {
|
||||||
this.name = 'delete';
|
this.name = 'delete';
|
||||||
this.description = 'Unbind a domain to the CWG';
|
this.description = 'Unbind a domain to the CWG';
|
||||||
this.usage = `${this.client.config.prefix}cwg delete [Domain | Port]`;
|
this.usage = `${this.client.config.prefix}cwg delete [Domain | Port]`;
|
||||||
this.permissions = { roles: ['525441307037007902'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300'] };
|
||||||
this.aliases = ['unbind'];
|
this.aliases = ['unbind'];
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default class CWG_UpdateCert extends Command {
|
||||||
this.name = 'updatecert';
|
this.name = 'updatecert';
|
||||||
this.description = 'Update a CWG certificate';
|
this.description = 'Update a CWG certificate';
|
||||||
this.usage = `${this.client.config.prefix}cwg updatecert [Domain | Port] [Cert Chain] [Private Key] || Use snippets raw URL`;
|
this.usage = `${this.client.config.prefix}cwg updatecert [Domain | Port] [Cert Chain] [Private Key] || Use snippets raw URL`;
|
||||||
this.permissions = { roles: ['525441307037007902'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300'] };
|
||||||
this.aliases = ['update', 'updatecrt', 'renew', 'renewcert', 'renewcrt'];
|
this.aliases = ['update', 'updatecrt', 'renew', 'renewcert', 'renewcrt'];
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default class DeleteAccount extends Command {
|
||||||
this.description = 'Delete an account on the Cloud VM';
|
this.description = 'Delete an account on the Cloud VM';
|
||||||
this.usage = `${this.client.config.prefix}deleteaccount [User Name | User ID | Email Address] [Reason]`;
|
this.usage = `${this.client.config.prefix}deleteaccount [User Name | User ID | Email Address] [Reason]`;
|
||||||
this.aliases = ['deleteacc', 'dacc', 'daccount', 'delete'];
|
this.aliases = ['deleteacc', 'dacc', 'daccount', 'delete'];
|
||||||
this.permissions = { roles: ['662163685439045632'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300'] };
|
||||||
this.guildOnly = true;
|
this.guildOnly = true;
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,7 +11,7 @@ export default class Disk extends Command {
|
||||||
this.name = 'disk';
|
this.name = 'disk';
|
||||||
this.description = 'Checks the used disk space by a user';
|
this.description = 'Checks the used disk space by a user';
|
||||||
this.usage = `${this.client.config.prefix}disk [Username/User ID/Email]`;
|
this.usage = `${this.client.config.prefix}disk [Username/User ID/Email]`;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = false;
|
this.enabled = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ export default class EmailCode extends Command {
|
||||||
this.name = 'emailcode';
|
this.name = 'emailcode';
|
||||||
this.description = 'Sends a code to an email address to use for address verification.';
|
this.description = 'Sends a code to an email address to use for address verification.';
|
||||||
this.usage = `${this.client.config.prefix}emailcode <email address>`;
|
this.usage = `${this.client.config.prefix}emailcode <email address>`;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.aliases = ['code'];
|
this.aliases = ['code'];
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default class Load extends Command {
|
||||||
this.name = 'load';
|
this.name = 'load';
|
||||||
this.description = '(Re)loads command, config or util';
|
this.description = '(Re)loads command, config or util';
|
||||||
this.aliases = ['reload'];
|
this.aliases = ['reload'];
|
||||||
this.permissions = { roles: ['525441307037007902'] };
|
this.permissions = { roles: ['662163685439045632'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default class Lock extends Command {
|
||||||
super(client);
|
super(client);
|
||||||
this.name = 'lock';
|
this.name = 'lock';
|
||||||
this.description = 'Locks an account.';
|
this.description = 'Locks an account.';
|
||||||
this.permissions = { roles: ['455972169449734144', '662163685439045632'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default class Modlogs extends Command {
|
||||||
this.description = 'Check a user\'s Cloud Modlogs';
|
this.description = 'Check a user\'s Cloud Modlogs';
|
||||||
this.aliases = ['infractions', 'modlog'];
|
this.aliases = ['infractions', 'modlog'];
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
}
|
}
|
||||||
|
|
||||||
public async run(message: Message, args: string[]) {
|
public async run(message: Message, args: string[]) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default class Notify extends Command {
|
||||||
this.name = 'notify';
|
this.name = 'notify';
|
||||||
this.description = 'Sends a notification to a user.';
|
this.description = 'Sends a notification to a user.';
|
||||||
this.usage = `${this.client.config.prefix}notify [username | user ID]`;
|
this.usage = `${this.client.config.prefix}notify [username | user ID]`;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
/* eslint-disable consistent-return */
|
||||||
|
import { Message } from 'eris';
|
||||||
|
import { Command } from '../class';
|
||||||
|
import { Client } from '..';
|
||||||
|
|
||||||
|
export default class Reload extends Command {
|
||||||
|
constructor(client: Client) {
|
||||||
|
super(client);
|
||||||
|
this.name = 'reload';
|
||||||
|
this.description = 'Reloads a command.';
|
||||||
|
this.usage = `${this.client.config.prefix}reload [command name]`;
|
||||||
|
this.permissions = { roles: ['525441307037007902'] };
|
||||||
|
this.enabled = true;
|
||||||
|
}
|
||||||
|
|
||||||
|
public run(message: Message, args: string[]): void {
|
||||||
|
if (!args.length) return this.client.commands.get('help').run(message, [this.name]);
|
||||||
|
}
|
||||||
|
}
|
|
@ -10,7 +10,7 @@ export default class ResetPassword extends Command {
|
||||||
this.description = 'Reset a cloud account password';
|
this.description = 'Reset a cloud account password';
|
||||||
this.aliases = ['resetpasswd', 'resetpw'];
|
this.aliases = ['resetpasswd', 'resetpw'];
|
||||||
this.usage = `${this.client.config.prefix}resetpassword [Username | User ID | Email]`;
|
this.usage = `${this.client.config.prefix}resetpassword [Username | User ID | Email]`;
|
||||||
this.permissions = { roles: ['662163685439045632'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default class Tier extends Command {
|
||||||
this.name = 'tier';
|
this.name = 'tier';
|
||||||
this.description = 'Changes the tier level for an account.';
|
this.description = 'Changes the tier level for an account.';
|
||||||
this.usage = `${this.client.config.prefix}tier <username | user ID> <1 | 2 | 3>`;
|
this.usage = `${this.client.config.prefix}tier <username | user ID> <1 | 2 | 3>`;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ export default class Unban extends Command {
|
||||||
this.description = 'Unban an IP from Cloud/NGINX';
|
this.description = 'Unban an IP from Cloud/NGINX';
|
||||||
this.aliases = ['unbanip'];
|
this.aliases = ['unbanip'];
|
||||||
this.usage = `${this.client.config.prefix}unban [service] [ip]`;
|
this.usage = `${this.client.config.prefix}unban [service] [ip]`;
|
||||||
this.permissions = { roles: ['455972169449734144', '662163685439045632'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ export default class Unlock extends Command {
|
||||||
super(client);
|
super(client);
|
||||||
this.name = 'unlock';
|
this.name = 'unlock';
|
||||||
this.description = 'Unlocks an account.';
|
this.description = 'Unlocks an account.';
|
||||||
this.permissions = { roles: ['455972169449734144', '662163685439045632'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default class Warn extends Command {
|
||||||
this.name = 'warn';
|
this.name = 'warn';
|
||||||
this.description = 'Sends an official warning to user.';
|
this.description = 'Sends an official warning to user.';
|
||||||
this.usage = `${this.client.config.prefix}warn [username | user ID]`;
|
this.usage = `${this.client.config.prefix}warn [username | user ID]`;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ export default class Whois extends Command {
|
||||||
this.description = 'Views information for a cloud account.';
|
this.description = 'Views information for a cloud account.';
|
||||||
this.aliases = ['account', 'user'];
|
this.aliases = ['account', 'user'];
|
||||||
this.usage = `${this.client.config.prefix}account [User Name | User ID | Email Address]`;
|
this.usage = `${this.client.config.prefix}account [User Name | User ID | Email Address]`;
|
||||||
this.permissions = { roles: ['446104438969466890'] };
|
this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] };
|
||||||
this.subcmds = [User];
|
this.subcmds = [User];
|
||||||
this.enabled = true;
|
this.enabled = true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue