mirror of
https://github.com/tomru/wichteln.git
synced 2026-03-03 06:27:15 +01:00
add langs 2021
This commit is contained in:
16
langs2021.csv
Normal file
16
langs2021.csv
Normal 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
|
||||
|
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user