1
0
Fork 0

add subdomain check to selfserv

master
Matthew 2023-06-30 07:54:12 -04:00
parent d7567ccb5a
commit 84bdaae2d2
Signed by: matthew
SSH Key Fingerprint: SHA256:piIXekA9q1p0ZGi4ogFbNY1embip5Ytbi3v8AZ8UYq4
1 changed files with 1 additions and 0 deletions

View File

@ -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 {