From 199dc4eb1598224ede63d18c2f8d11563523705a Mon Sep 17 00:00:00 2001 From: nannal Date: Sun, 15 Nov 2020 03:25:32 +0200 Subject: [PATCH] made black default list to add to --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 5f4b5a7..02ed3f2 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ url="https://avalonblacklist.nannal.com/" program .option('-d, --debug', 'Output extra debugging') .option('-U, --url ', 'Talk to an alternate blacklist service', url) - .option('-l,--list ', 'Which list to add the target to') + .option('-l,--list ', 'Which list to add the target to', "black") .option('-a,--approve ', 'Expand the list of approved list editors') .option('-r,--reason ', 'Justify why a user should be added to the provided list') .requiredOption('-k,--key ', 'Any valid private key for your DTube user') @@ -15,7 +15,7 @@ program program.parse(process.argv) -if (!program.list && program.approve){ +if (!program.list=="black" && program.approve){ console.log("Please choose either -a or -l, you can't approve and add someone to a list at the same time") } else if (program.option && !program.reason) { console.log("Please inform other users why you put the user on the chosen list")