From 84bdaae2d2a1840ac09ce212d60c2fdf0efa7fae Mon Sep 17 00:00:00 2001 From: Matthew Date: Fri, 30 Jun 2023 07:54:12 -0400 Subject: [PATCH] add subdomain check to selfserv --- src/commands/cwg_selfserv.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/commands/cwg_selfserv.ts b/src/commands/cwg_selfserv.ts index a4ae8c2..8279898 100644 --- a/src/commands/cwg_selfserv.ts +++ b/src/commands/cwg_selfserv.ts @@ -20,6 +20,7 @@ export default class CWG_SelfService extends Command { } public async run(message: Message, args: string[]) { + if (!args[0].endsWith('.cloud.libraryofcode.org')) return this.error(message.channel, 'Only subdomains may be created with this command. If you\'d like to use a custom domain please contact a Technician.'); const reqDomain = `${escape(args[0])}.cloud.libraryofcode.org`; try {