1
0
Fork 0

Fix error message, missing the *.cloud*

master
TheGreench 2021-07-31 19:52:41 +00:00
parent 8c9f70df10
commit 9cc21aba44
1 changed files with 222 additions and 222 deletions

View File

@ -59,7 +59,7 @@ export default class CWG_Create extends Command {
let certs: { cert?: string, key?: string } = {}; let certs: { cert?: string, key?: string } = {};
if (!args[1].endsWith('.cloud.libraryofcode.org')) { if (!args[1].endsWith('.cloud.libraryofcode.org')) {
const urls = args.slice(3, 5); const urls = args.slice(3, 5);
if (urls.some((l) => !l.includes('snippets.cloud.libraryofcode.org/raw/'))) return this.error(message.channel, 'Invalid snippets URL. Make sure to use https://snippets.libraryofcode.org/raw/*.'); if (urls.some((l) => !l.includes('snippets.cloud.libraryofcode.org/raw/'))) return this.error(message.channel, 'Invalid snippets URL. Make sure to use https://snippets.cloud.libraryofcode.org/raw/*.');
const tasks = urls.map((l) => axios({ method: 'GET', url: l })); const tasks = urls.map((l) => axios({ method: 'GET', url: l }));
const response = await Promise.all(tasks); const response = await Promise.all(tasks);