forked from engineering/cloudservices
Merge branch 'TheGreench-master-patch-00039' into 'master'
Fix error message, missing the *.cloud* See merge request engineering/cloudservices!4master
commit
08be688daa
|
@ -59,7 +59,7 @@ export default class CWG_Create extends Command {
|
|||
let certs: { cert?: string, key?: string } = {};
|
||||
if (!args[1].endsWith('.cloud.libraryofcode.org')) {
|
||||
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 response = await Promise.all(tasks);
|
||||
|
|
Loading…
Reference in New Issue