From ff048bfb5138005fff5a043c103f1337f20ae23c Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Wed, 1 Dec 2021 22:27:20 +0100 Subject: [PATCH] add langs 2021 --- langs2021.csv | 16 ++++++++++++++++ wichteln.js | 6 +++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 langs2021.csv diff --git a/langs2021.csv b/langs2021.csv new file mode 100644 index 0000000..472ef64 --- /dev/null +++ b/langs2021.csv @@ -0,0 +1,16 @@ +Jörg joerg.vostinar@gmx.de 1 +Stephanie stephanie.vostinar@gmx.de 1 +Jonas stephanie.vostinar@gmx.de 1 +Noah stephanie.vostinar@gmx.de 1 +Kirsten kirstenlang@web.de 2 +Mila kirstenlang@web.de 2 +Gisela grasklang@gmx.de 3 +Herbyie herbyie@web.de 4 +Sabine sabine.hennig@t-online.de 5 +Claudia claudiavoigt@yahoo.de 6 +Marius MariusV@gmx.de 6 +Arthur artsen90@gmail.com 7 +Alex alex80_leon02@yahoo.de 7 +Léon leon2002lang@gmail.com 7 +Lia alex80_leon02@yahoo.de 7 +Luana alex80_leon02@yahoo.de 7 diff --git a/wichteln.js b/wichteln.js index 13e43d1..80c8520 100755 --- a/wichteln.js +++ b/wichteln.js @@ -53,7 +53,7 @@ function read() { const run = async () => { const people = await read(); - const dryRun = process.argv[2] === "--dry"; + const send = process.argv[2] === "--send"; if (!people || !people.length) { throw new Error("input file empty"); @@ -83,8 +83,8 @@ const run = async () => { people.map(({ name, pick }) => `${name} picked ${pick}`).join("\n") ); - if (dryRun) { - console.log("DryRun: did not send emails"); + if (!send) { + console.log("DryRun: did not send emails. To send pass --send option"); return; } people.forEach(p => mail(p.email, p.name, p.pick));