add langs 2021

This commit is contained in:
Thomas Ruoff
2021-12-01 22:27:20 +01:00
parent 6885dd1afc
commit ff048bfb51
2 changed files with 19 additions and 3 deletions

16
langs2021.csv Normal file
View File

@@ -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
1 Jörg joerg.vostinar gmx.de 1
2 Stephanie stephanie.vostinar gmx.de 1
3 Jonas stephanie.vostinar gmx.de 1
4 Noah stephanie.vostinar gmx.de 1
5 Kirsten kirstenlang web.de 2
6 Mila kirstenlang web.de 2
7 Gisela grasklang gmx.de 3
8 Herbyie herbyie web.de 4
9 Sabine sabine.hennig t-online.de 5
10 Claudia claudiavoigt yahoo.de 6
11 Marius MariusV gmx.de 6
12 Arthur artsen90 gmail.com 7
13 Alex alex80_leon02 yahoo.de 7
14 Léon leon2002lang gmail.com 7
15 Lia alex80_leon02 yahoo.de 7
16 Luana alex80_leon02 yahoo.de 7

View File

@@ -53,7 +53,7 @@ function read() {
const run = async () => { const run = async () => {
const people = await read(); const people = await read();
const dryRun = process.argv[2] === "--dry"; const send = process.argv[2] === "--send";
if (!people || !people.length) { if (!people || !people.length) {
throw new Error("input file empty"); throw new Error("input file empty");
@@ -83,8 +83,8 @@ const run = async () => {
people.map(({ name, pick }) => `${name} picked ${pick}`).join("\n") people.map(({ name, pick }) => `${name} picked ${pick}`).join("\n")
); );
if (dryRun) { if (!send) {
console.log("DryRun: did not send emails"); console.log("DryRun: did not send emails. To send pass --send option");
return; return;
} }
people.forEach(p => mail(p.email, p.name, p.pick)); people.forEach(p => mail(p.email, p.name, p.pick));