add subdomain check to selfserv
parent
d7567ccb5a
commit
84bdaae2d2
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue