diff --git a/src/commands/announce.ts b/src/commands/announce.ts index 1b0207b..65cb8c6 100644 --- a/src/commands/announce.ts +++ b/src/commands/announce.ts @@ -9,7 +9,7 @@ export default class Announce extends Command { 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.aliases = ['ann']; - this.permissions = { roles: ['662163685439045632'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/cloudflare.ts b/src/commands/cloudflare.ts index 18958a6..35bc18d 100644 --- a/src/commands/cloudflare.ts +++ b/src/commands/cloudflare.ts @@ -9,7 +9,7 @@ export default class Cloudflare extends Command { this.name = 'cloudflare'; this.description = 'Remove an entry from Cloudflare DNS records'; this.permissions = { - roles: ['525441307037007902'], + roles: ['662163685439045632'], }; this.aliases = ['cf']; this.enabled = true; diff --git a/src/commands/createaccount.ts b/src/commands/createaccount.ts index d2eb954..68da2d2 100644 --- a/src/commands/createaccount.ts +++ b/src/commands/createaccount.ts @@ -9,7 +9,7 @@ export default class CreateAccount extends Command { this.description = 'Create an account on the Cloud VM'; this.usage = `${this.client.config.prefix}createaccount [User ID] [Email] [Account name]`; this.aliases = ['createacc', 'cacc', 'caccount', 'create']; - this.permissions = { roles: ['662163685439045632', '455972169449734144'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/cwg_create.ts b/src/commands/cwg_create.ts index 5855157..86819b6 100644 --- a/src/commands/cwg_create.ts +++ b/src/commands/cwg_create.ts @@ -14,7 +14,7 @@ export default class CWG_Create extends Command { this.name = 'create'; this.description = 'Bind a domain to the CWG'; this.usage = `${this.client.config.prefix}cwg create [User ID | Username] [Domain] [Port] || Use snippets raw URL`; - this.permissions = { roles: ['525441307037007902'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300'] }; this.aliases = ['bind']; this.enabled = true; this.urlRegex = /^[a-zA-Z0-9\-._~:/?#[\]@!$&'()*+,;=]+$/; diff --git a/src/commands/cwg_data.ts b/src/commands/cwg_data.ts index 58c947f..01ed4a4 100644 --- a/src/commands/cwg_data.ts +++ b/src/commands/cwg_data.ts @@ -12,7 +12,7 @@ export default class CWG_Data extends Command { this.name = 'data'; this.description = 'Check CWG data'; this.usage = `${this.client.config.prefix}cwg data [Domain | Port]`; - this.permissions = { roles: ['446104438969466890'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/cwg_delete.ts b/src/commands/cwg_delete.ts index 53424c5..be9fd19 100644 --- a/src/commands/cwg_delete.ts +++ b/src/commands/cwg_delete.ts @@ -10,7 +10,7 @@ export default class CWG_Delete extends Command { this.name = 'delete'; this.description = 'Unbind a domain to the CWG'; this.usage = `${this.client.config.prefix}cwg delete [Domain | Port]`; - this.permissions = { roles: ['525441307037007902'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300'] }; this.aliases = ['unbind']; this.enabled = true; } diff --git a/src/commands/cwg_updatecert.ts b/src/commands/cwg_updatecert.ts index 6c58ed2..49087f2 100644 --- a/src/commands/cwg_updatecert.ts +++ b/src/commands/cwg_updatecert.ts @@ -10,7 +10,7 @@ export default class CWG_UpdateCert extends Command { this.name = 'updatecert'; 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.permissions = { roles: ['525441307037007902'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300'] }; this.aliases = ['update', 'updatecrt', 'renew', 'renewcert', 'renewcrt']; this.enabled = true; } diff --git a/src/commands/deleteaccount.ts b/src/commands/deleteaccount.ts index 694fb79..61529e6 100644 --- a/src/commands/deleteaccount.ts +++ b/src/commands/deleteaccount.ts @@ -10,7 +10,7 @@ export default class DeleteAccount extends Command { this.description = 'Delete an account on the Cloud VM'; this.usage = `${this.client.config.prefix}deleteaccount [User Name | User ID | Email Address] [Reason]`; this.aliases = ['deleteacc', 'dacc', 'daccount', 'delete']; - this.permissions = { roles: ['662163685439045632'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300'] }; this.guildOnly = true; this.enabled = true; } diff --git a/src/commands/disk.ts b/src/commands/disk.ts index 5721961..48ecc57 100644 --- a/src/commands/disk.ts +++ b/src/commands/disk.ts @@ -11,7 +11,7 @@ export default class Disk extends Command { this.name = 'disk'; this.description = 'Checks the used disk space by a user'; this.usage = `${this.client.config.prefix}disk [Username/User ID/Email]`; - this.permissions = { roles: ['446104438969466890'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = false; } diff --git a/src/commands/emailcode.ts b/src/commands/emailcode.ts index c4949d3..e1acbf6 100644 --- a/src/commands/emailcode.ts +++ b/src/commands/emailcode.ts @@ -9,7 +9,7 @@ export default class EmailCode extends Command { this.name = 'emailcode'; this.description = 'Sends a code to an email address to use for address verification.'; this.usage = `${this.client.config.prefix}emailcode `; - this.permissions = { roles: ['446104438969466890'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.aliases = ['code']; this.enabled = true; } diff --git a/src/commands/load.ts b/src/commands/load.ts index 92ce2bd..39df7c9 100644 --- a/src/commands/load.ts +++ b/src/commands/load.ts @@ -8,7 +8,7 @@ export default class Load extends Command { this.name = 'load'; this.description = '(Re)loads command, config or util'; this.aliases = ['reload']; - this.permissions = { roles: ['525441307037007902'] }; + this.permissions = { roles: ['662163685439045632'] }; this.enabled = true; } diff --git a/src/commands/lock.ts b/src/commands/lock.ts index 245013a..77e6f8c 100644 --- a/src/commands/lock.ts +++ b/src/commands/lock.ts @@ -8,7 +8,7 @@ export default class Lock extends Command { super(client); this.name = 'lock'; this.description = 'Locks an account.'; - this.permissions = { roles: ['455972169449734144', '662163685439045632'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/modlogs.ts b/src/commands/modlogs.ts index 4b9f60a..b8cf5b9 100644 --- a/src/commands/modlogs.ts +++ b/src/commands/modlogs.ts @@ -10,7 +10,7 @@ export default class Modlogs extends Command { this.description = 'Check a user\'s Cloud Modlogs'; this.aliases = ['infractions', 'modlog']; this.enabled = true; - this.permissions = { roles: ['446104438969466890'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; } public async run(message: Message, args: string[]) { diff --git a/src/commands/notify.ts b/src/commands/notify.ts index 71fcaff..bff60d1 100644 --- a/src/commands/notify.ts +++ b/src/commands/notify.ts @@ -8,7 +8,7 @@ export default class Notify extends Command { this.name = 'notify'; this.description = 'Sends a notification to a user.'; this.usage = `${this.client.config.prefix}notify [username | user ID]`; - this.permissions = { roles: ['446104438969466890'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/reload.ts b/src/commands/reload.ts new file mode 100644 index 0000000..9aeb4c0 --- /dev/null +++ b/src/commands/reload.ts @@ -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]); + } +} diff --git a/src/commands/resetpassword.ts b/src/commands/resetpassword.ts index ca38507..eddc7ef 100644 --- a/src/commands/resetpassword.ts +++ b/src/commands/resetpassword.ts @@ -10,7 +10,7 @@ export default class ResetPassword extends Command { this.description = 'Reset a cloud account password'; this.aliases = ['resetpasswd', 'resetpw']; this.usage = `${this.client.config.prefix}resetpassword [Username | User ID | Email]`; - this.permissions = { roles: ['662163685439045632'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/tier.ts b/src/commands/tier.ts index 5a13d98..15a353e 100644 --- a/src/commands/tier.ts +++ b/src/commands/tier.ts @@ -8,7 +8,7 @@ export default class Tier extends Command { this.name = 'tier'; this.description = 'Changes the tier level for an account.'; this.usage = `${this.client.config.prefix}tier <1 | 2 | 3>`; - this.permissions = { roles: ['446104438969466890'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/unban.ts b/src/commands/unban.ts index a443c99..dc5f5a7 100644 --- a/src/commands/unban.ts +++ b/src/commands/unban.ts @@ -10,7 +10,7 @@ export default class Unban extends Command { this.description = 'Unban an IP from Cloud/NGINX'; this.aliases = ['unbanip']; this.usage = `${this.client.config.prefix}unban [service] [ip]`; - this.permissions = { roles: ['455972169449734144', '662163685439045632'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/unlock.ts b/src/commands/unlock.ts index e4ee5da..e5ab578 100644 --- a/src/commands/unlock.ts +++ b/src/commands/unlock.ts @@ -7,7 +7,7 @@ export default class Unlock extends Command { super(client); this.name = 'unlock'; this.description = 'Unlocks an account.'; - this.permissions = { roles: ['455972169449734144', '662163685439045632'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/warn.ts b/src/commands/warn.ts index 00e0bff..5ee3a9d 100644 --- a/src/commands/warn.ts +++ b/src/commands/warn.ts @@ -8,7 +8,7 @@ export default class Warn extends Command { this.name = 'warn'; this.description = 'Sends an official warning to user.'; this.usage = `${this.client.config.prefix}warn [username | user ID]`; - this.permissions = { roles: ['446104438969466890'] }; + this.permissions = { roles: ['662163685439045632', '701454855952138300', '701454780828221450'] }; this.enabled = true; } diff --git a/src/commands/whois.ts b/src/commands/whois.ts index 945a67a..d29a364 100644 --- a/src/commands/whois.ts +++ b/src/commands/whois.ts @@ -12,7 +12,7 @@ export default class Whois extends Command { this.description = 'Views information for a cloud account.'; this.aliases = ['account', 'user']; 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.enabled = true; }