1
0
Fork 0

Merge branch 'TheGreench-master-patch-00039' into 'master'

Fix error message, missing the *.cloud*

See merge request engineering/cloudservices!4
master
Hiroyuki 2021-07-31 21:09:24 +00:00
commit 08be688daa
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 } = {};
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);