Lista Doni Navi
This commit is contained in:
@@ -53,7 +53,7 @@ CalZoomSchema.statics.findAllIdApp = async function (idapp) {
|
|||||||
|
|
||||||
const myfind = { idapp, date_start: { $gt: tools.IncDateNow(-1000 * 60 * 60 * 3) } };
|
const myfind = { idapp, date_start: { $gt: tools.IncDateNow(-1000 * 60 * 60 * 3) } };
|
||||||
|
|
||||||
return await CalZoom.find(myfind).sort({ date_start: 1 }).limit(4);
|
return await CalZoom.find(myfind).sort({ date_start: 1 }).limit(6);
|
||||||
};
|
};
|
||||||
|
|
||||||
CalZoomSchema.statics.getNextZoom = async function (idapp) {
|
CalZoomSchema.statics.getNextZoom = async function (idapp) {
|
||||||
|
|||||||
@@ -78,8 +78,13 @@ const NaveSchema = new mongoose.Schema({
|
|||||||
},
|
},
|
||||||
provvisoria: {
|
provvisoria: {
|
||||||
type: Boolean
|
type: Boolean
|
||||||
|
},
|
||||||
|
note: {
|
||||||
|
type: String
|
||||||
|
},
|
||||||
|
note_interne: {
|
||||||
|
type: String
|
||||||
}
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
NaveSchema.statics.getTotInLista = async function (idapp) {
|
NaveSchema.statics.getTotInLista = async function (idapp) {
|
||||||
@@ -354,11 +359,12 @@ NaveSchema.statics.findGeneric = function (myrigacol) {
|
|||||||
return myarr;
|
return myarr;
|
||||||
} else {
|
} else {
|
||||||
let myarr = null;
|
let myarr = null;
|
||||||
if (rec[0]._doc === undefined)
|
if (!!newrec) {
|
||||||
myarr = { ...newrec._doc, ...rec[0] };
|
if (rec[0]._doc === undefined)
|
||||||
else
|
myarr = { ...newrec._doc, ...rec[0] };
|
||||||
myarr = { ...newrec._doc, ...rec[0]._doc };
|
else
|
||||||
|
myarr = { ...newrec._doc, ...rec[0]._doc };
|
||||||
|
}
|
||||||
return myarr;
|
return myarr;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
@@ -417,8 +423,11 @@ function getQueryProj(myfilter) {
|
|||||||
date_gift_chat_open: 1,
|
date_gift_chat_open: 1,
|
||||||
made_gift: 1,
|
made_gift: 1,
|
||||||
link_chat: 1,
|
link_chat: 1,
|
||||||
|
sent_msg_howto_make_gift: 1,
|
||||||
date_made_gift: 1,
|
date_made_gift: 1,
|
||||||
provvisoria: 1,
|
provvisoria: 1,
|
||||||
|
note: 1,
|
||||||
|
note_interne: 1,
|
||||||
received_gift: 1,
|
received_gift: 1,
|
||||||
date_received_gift: 1,
|
date_received_gift: 1,
|
||||||
num_tess: 1,
|
num_tess: 1,
|
||||||
@@ -571,7 +580,7 @@ NaveSchema.statics.getPlaccaGenerica = async function (idapp, riga, col, offset,
|
|||||||
|
|
||||||
let recfuoco = await Nave.findByRigaCol(idapp, indr, indc, true);
|
let recfuoco = await Nave.findByRigaCol(idapp, indr, indc, true);
|
||||||
recfuoco = checkifNullThenEmpty(recfuoco, indr, indc);
|
recfuoco = checkifNullThenEmpty(recfuoco, indr, indc);
|
||||||
arrdonatori.push(recfuoco);
|
arrdonatori.push({ index: ind, ...recfuoco });
|
||||||
mystr += await getusertextbyrec(recfuoco, symb.icona, symb.car, indr, indc, ind) + tools.ACAPO;
|
mystr += await getusertextbyrec(recfuoco, symb.icona, symb.car, indr, indc, ind) + tools.ACAPO;
|
||||||
ind++;
|
ind++;
|
||||||
}
|
}
|
||||||
@@ -660,6 +669,12 @@ function calcval(riga, col, quanti) {
|
|||||||
NaveSchema.statics.getNavePos = async function (idapp, riga, col, solorecord) {
|
NaveSchema.statics.getNavePos = async function (idapp, riga, col, solorecord) {
|
||||||
const Nave = this;
|
const Nave = this;
|
||||||
|
|
||||||
|
if (riga <= 0)
|
||||||
|
riga = 1;
|
||||||
|
if (col <= 0)
|
||||||
|
col = 1;
|
||||||
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
let recsognatori = [await Nave.findRecByRigaColParent(idapp, riga, col, 3),
|
let recsognatori = [await Nave.findRecByRigaColParent(idapp, riga, col, 3),
|
||||||
await Nave.findRecByRigaColParent(idapp, riga, col, 2),
|
await Nave.findRecByRigaColParent(idapp, riga, col, 2),
|
||||||
@@ -696,6 +711,9 @@ NaveSchema.statics.getNavePos = async function (idapp, riga, col, solorecord) {
|
|||||||
let primofuoco = null;
|
let primofuoco = null;
|
||||||
|
|
||||||
mystr += '🎁 DONATORI:' + tools.ACAPO;
|
mystr += '🎁 DONATORI:' + tools.ACAPO;
|
||||||
|
let donitotali = 0;
|
||||||
|
let donifatti = 0;
|
||||||
|
|
||||||
for (let indfuoco = 1; indfuoco <= 8; indfuoco++) {
|
for (let indfuoco = 1; indfuoco <= 8; indfuoco++) {
|
||||||
miacol = calcval(riga, col, 8) + (indfuoco);
|
miacol = calcval(riga, col, 8) + (indfuoco);
|
||||||
miariga = riga + 3;
|
miariga = riga + 3;
|
||||||
@@ -703,7 +721,26 @@ NaveSchema.statics.getNavePos = async function (idapp, riga, col, solorecord) {
|
|||||||
let recfuoco = await Nave.findByRigaCol(idapp, miariga, miacol, true);
|
let recfuoco = await Nave.findByRigaCol(idapp, miariga, miacol, true);
|
||||||
if (indfuoco === 1)
|
if (indfuoco === 1)
|
||||||
primofuoco = recfuoco;
|
primofuoco = recfuoco;
|
||||||
mystr += await getusertextbyrec(recfuoco, '', 'D', miariga, miacol, indfuoco) + tools.ACAPO;
|
|
||||||
|
let symbol = '';
|
||||||
|
if (recfuoco.made_gift) {
|
||||||
|
symbol = '🎁';
|
||||||
|
donifatti++;
|
||||||
|
}
|
||||||
|
if (!!recfuoco && recmediatore) {
|
||||||
|
if (recfuoco.ind_order === recmediatore.ind_order && recfuoco.num_tess === 2) {
|
||||||
|
mystr += await getusertextbyrec(recfuoco, '', 'TESS', miariga, miacol, '') + tools.ACAPO;
|
||||||
|
} else {
|
||||||
|
mystr += await getusertextbyrec(recfuoco, symbol, 'D', miariga, miacol, indfuoco) + tools.ACAPO;
|
||||||
|
donitotali++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (donitotali > 0 && donifatti >= donitotali) {
|
||||||
|
mystr += tools.ACAPO + '💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫' + tools.ACAPO +
|
||||||
|
'✨✨✨ NAVE COMPLETATA (Doni Effettuati) ! ✨✨✨' + tools.ACAPO +
|
||||||
|
'💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫💫' + tools.ACAPO;
|
||||||
}
|
}
|
||||||
|
|
||||||
let data = "";
|
let data = "";
|
||||||
@@ -711,6 +748,8 @@ NaveSchema.statics.getNavePos = async function (idapp, riga, col, solorecord) {
|
|||||||
if (primofuoco) {
|
if (primofuoco) {
|
||||||
data = '💬 Giorno di Apertura GIFT CHAT: ' + tools.getstrDateLong(primofuoco.date_gift_chat_open) + tools.ACAPO;
|
data = '💬 Giorno di Apertura GIFT CHAT: ' + tools.getstrDateLong(primofuoco.date_gift_chat_open) + tools.ACAPO;
|
||||||
data += "🎁 Giorno in cui Inviare il DONO : " + tools.getstrDateLong(primofuoco.date_start) + tools.ACAPO;
|
data += "🎁 Giorno in cui Inviare il DONO : " + tools.getstrDateLong(primofuoco.date_start) + tools.ACAPO;
|
||||||
|
if (!!recmediatore.note)
|
||||||
|
data += "Note: " + recmediatore.note + tools.ACAPO;
|
||||||
data += tools.ACAPO;
|
data += tools.ACAPO;
|
||||||
|
|
||||||
data += 'Il Mediatore sarà contattato 1 giorno prima dal Tutor' + tools.ACAPO;
|
data += 'Il Mediatore sarà contattato 1 giorno prima dal Tutor' + tools.ACAPO;
|
||||||
@@ -726,6 +765,7 @@ NaveSchema.statics.getNavePos = async function (idapp, riga, col, solorecord) {
|
|||||||
return mystr;
|
return mystr;
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
|
return '';
|
||||||
}
|
}
|
||||||
|
|
||||||
};
|
};
|
||||||
@@ -1099,14 +1139,17 @@ NaveSchema.statics.getNaveByUser = async function (idapp, ind_order, lang, fuoco
|
|||||||
const arrposiz = await Nave.getArrPosizioniByIndOrder(idapp, ind_order);
|
const arrposiz = await Nave.getArrPosizioniByIndOrder(idapp, ind_order);
|
||||||
if (!!arrposiz) {
|
if (!!arrposiz) {
|
||||||
for (const pos of arrposiz) {
|
for (const pos of arrposiz) {
|
||||||
mystr += await Nave.getNavePos(idapp, pos.riga - 3, Math.floor(pos.col / (2 * 4)), false);
|
let mypos = {
|
||||||
mystr += await Nave.getPlaccaPerDonatore(idapp, pos.riga, pos.col, false, rec);
|
riga: pos.riga,
|
||||||
mystr += await Nave.getPlaccaPerMediatore(idapp, pos.riga, pos.col, false, rec);
|
col: pos.col,
|
||||||
}
|
numup: 3,
|
||||||
}
|
};
|
||||||
|
tools.getRigaColByPosUp(mypos);
|
||||||
|
|
||||||
if (mystr === '') {
|
mystr += await Nave.getNavePos(idapp, mypos.riga, mypos.col, false);
|
||||||
mystr = tools.gettranslate('NO_PROG', lang);
|
// mystr += await Nave.getPlaccaPerDonatore(idapp, pos.riga, pos.col, false, rec);
|
||||||
|
// mystr += await Nave.getPlaccaPerMediatore(idapp, pos.riga, pos.col, false, rec);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return mystr;
|
return mystr;
|
||||||
|
|||||||
@@ -58,11 +58,23 @@ router.post('/msgnave', authenticate, async (req, res) => {
|
|||||||
const idapp = req.body.idapp;
|
const idapp = req.body.idapp;
|
||||||
let mydata = req.body;
|
let mydata = req.body;
|
||||||
|
|
||||||
const ris = await telegrambot.sendMsgTelegramToNave(idapp, mydata);
|
try {
|
||||||
if (ris)
|
|
||||||
res.send({ code: server_constants.RIS_CODE_OK, ris });
|
let ris = null;
|
||||||
else
|
if (mydata.tipomsg === tools.TipoMsg.SEND_MSG_SINGOLO)
|
||||||
|
ris = await telegrambot.sendMsgTelegram(idapp, mydata.username, mydata.msgpar1, true); // Anche a STAFF
|
||||||
|
else
|
||||||
|
ris = await telegrambot.sendMsgTelegramToNave(idapp, mydata);
|
||||||
|
|
||||||
|
if (ris)
|
||||||
|
res.send({ code: server_constants.RIS_CODE_OK, ris });
|
||||||
|
else
|
||||||
|
res.send({ code: server_constants.RIS_CODE_ERR, ris: null });
|
||||||
|
|
||||||
|
|
||||||
|
}catch (e) {
|
||||||
res.status(400).send(e);
|
res.status(400).send(e);
|
||||||
|
}
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -122,10 +134,12 @@ router.post('/getdoninavi', authenticate, async (req, res) => {
|
|||||||
navi_partenza.push(mynave);
|
navi_partenza.push(mynave);
|
||||||
let numcol = Math.pow(2, indriga - 1);
|
let numcol = Math.pow(2, indriga - 1);
|
||||||
|
|
||||||
|
let quanti = Math.ceil(numcol / 8);
|
||||||
|
|
||||||
// let quanti = Math.ceil(numcol / 8);
|
// let quanti = Math.ceil(numcol / 8);
|
||||||
|
|
||||||
for (let indcol = 1; indcol <= numcol; indcol++) {
|
for (let indcol = 1; indcol <= numcol; indcol++) {
|
||||||
arrnavi.push({ riga: indriga, col: indcol });
|
arrnavi.push({ riga: indriga, col: indcol, rigadon: indriga + 3, coldon: (indcol * 8) - 7 });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -133,24 +147,30 @@ router.post('/getdoninavi', authenticate, async (req, res) => {
|
|||||||
let index = 1;
|
let index = 1;
|
||||||
|
|
||||||
for (nave of arrnavi) {
|
for (nave of arrnavi) {
|
||||||
nave.rec = await Nave.getNaveByRigaCol(idapp, nave.riga, nave.col);
|
nave.rec = await Nave.getNaveByRigaCol(idapp, nave.rigadon, nave.coldon);
|
||||||
mypos = {
|
/*mypos = {
|
||||||
riga: nave.riga,
|
riga: nave.riga,
|
||||||
col: nave.col,
|
col: nave.col,
|
||||||
numup: 3,
|
numup: 3,
|
||||||
};
|
};
|
||||||
tools.getRigaColByPosUp(mypos);
|
tools.getRigaColByPosUp(mypos);*/
|
||||||
|
|
||||||
nave.index = index;
|
nave.index = index;
|
||||||
|
if (!!nave.rec.donatore.recmediatore) {
|
||||||
|
nave.id = nave.rec.donatore.recmediatore._id;
|
||||||
|
nave.note = nave.rec.donatore.recmediatore.note;
|
||||||
|
} else {
|
||||||
|
nave.id = null;
|
||||||
|
}
|
||||||
nave.DoniAttesaDiConferma = 0;
|
nave.DoniAttesaDiConferma = 0;
|
||||||
nave.DoniMancanti = 0;
|
nave.DoniMancanti = 0;
|
||||||
nave.DoniMancanti = 0;
|
nave.DoniMancanti = 0;
|
||||||
|
|
||||||
if (!!nave.rec) {
|
if (!!nave.rec) {
|
||||||
if (!!nave.rec.mediatore) {
|
if (!!nave.rec.donatore) {
|
||||||
nave.DoniAttesaDiConferma = nave.rec.mediatore.arrdonatori.filter((rec) => (!!rec.date_made_gift && !rec.made_gift)).reduce((sum, item) => sum + 1, 0);
|
nave.DoniAttesaDiConferma = nave.rec.donatore.arrdonatori.filter((rec) => (!!rec.date_made_gift && !rec.made_gift && !(rec.ind_order === nave.rec.donatore.recmediatore.ind_order && rec.num_tess === 2))).reduce((sum, item) => sum + 1, 0);
|
||||||
nave.DoniMancanti = nave.rec.mediatore.arrdonatori.filter((rec) => (!rec.made_gift && !rec.date_made_gift)).reduce((sum, item) => sum + 1, 0);
|
nave.DoniMancanti = nave.rec.donatore.arrdonatori.filter((rec) => (!rec.made_gift && !(rec.ind_order === nave.rec.donatore.recmediatore.ind_order && rec.num_tess === 2))).reduce((sum, item) => sum + 1, 0);
|
||||||
nave.DoniConfermati = nave.rec.mediatore.arrdonatori.filter((rec) => rec.made_gift).reduce((sum, item) => sum + 1, 0);
|
nave.DoniConfermati = nave.rec.donatore.arrdonatori.filter((rec) => rec.made_gift && !(rec.ind_order === nave.rec.donatore.recmediatore.ind_order && rec.num_tess === 2)).reduce((sum, item) => sum + 1, 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
index++;
|
index++;
|
||||||
|
|||||||
@@ -433,7 +433,7 @@ router.post('/dbop', authenticate, async (req, res) => {
|
|||||||
} else if (mydata.dbop === 'delNaviNoStarted') {
|
} else if (mydata.dbop === 'delNaviNoStarted') {
|
||||||
await Nave.setRiga(idapp, 1);
|
await Nave.setRiga(idapp, 1);
|
||||||
await Nave.setCol(idapp, 1);
|
await Nave.setCol(idapp, 1);
|
||||||
const num = await Nave.remove({ idapp, date_start : { $gte: tools.IncDateNow(-1000 * 60 * 60 * 24 * 3) } });
|
const num = await Nave.remove({ idapp, date_start: { $gte: tools.IncDateNow(-1000 * 60 * 60 * 24 * 3) } });
|
||||||
ris = { num };
|
ris = { num };
|
||||||
} else if (mydata.dbop === 'delNaviProvvisorie') {
|
} else if (mydata.dbop === 'delNaviProvvisorie') {
|
||||||
const num = await Nave.remove({ idapp, provvisoria: true });
|
const num = await Nave.remove({ idapp, provvisoria: true });
|
||||||
@@ -491,6 +491,23 @@ router.post('/dbop', authenticate, async (req, res) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ris = { num };
|
||||||
|
} else if (mydata.dbop === 'Corregginumtess') {
|
||||||
|
const listanavi = await Nave.find({ idapp });
|
||||||
|
let num = 0;
|
||||||
|
for (let rec of listanavi) {
|
||||||
|
const myarrrec = await Nave.find({ idapp, ind_order: rec.ind_order }).sort({ riga: 1, col: 1 });
|
||||||
|
let indextess = 1;
|
||||||
|
for (let ind = 0; ind < myarrrec.length; ind++) {
|
||||||
|
if (myarrrec[ind].num_tess !== indextess) {
|
||||||
|
myarrrec[ind].num_tess = indextess;
|
||||||
|
const risu = await Nave.findOneAndUpdate({ _id: myarrrec[ind]._id }, { $set: { num_tess: myarrrec[ind].num_tess } }, { new: false });
|
||||||
|
num++;
|
||||||
|
}
|
||||||
|
indextess++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
ris = { num };
|
ris = { num };
|
||||||
} else if (mydata.dbop === 'creaUtentiTest') {
|
} else if (mydata.dbop === 'creaUtentiTest') {
|
||||||
|
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ strNave = "Nave";
|
|||||||
|
|
||||||
const Menu = {
|
const Menu = {
|
||||||
ACCEDI: emo.PERSON + ' Accedi',
|
ACCEDI: emo.PERSON + ' Accedi',
|
||||||
LAVAGNA: emoji.get('om_symbol') + ' Lavagna (Requisiti)',
|
LAVAGNA: emoji.get('om_symbol') + ' Lavagna',
|
||||||
LINK_CONDIVIDERE: emoji.get('link') + ' Link da condividere',
|
LINK_CONDIVIDERE: emoji.get('link') + ' Link da condividere',
|
||||||
ZOOM: emoji.get('information_source') + ' Zoom (Conferenze)',
|
ZOOM: emoji.get('information_source') + ' Zoom (Conferenze)',
|
||||||
INFO: emoji.get('information_source') + ' Informazioni',
|
INFO: emoji.get('information_source') + ' Informazioni',
|
||||||
@@ -169,7 +169,7 @@ const SendMsgCmd = [CONTA_SOLO, RICEVI_EMAIL];
|
|||||||
|
|
||||||
const MenuNoLogin = [[Menu.ACCEDI], [Menu.ASSISTENZA]];
|
const MenuNoLogin = [[Menu.ACCEDI], [Menu.ASSISTENZA]];
|
||||||
const MenuStandard = [[Menu.LAVAGNA, Menu.LINK_CONDIVIDERE], [Menu.ZOOM, Menu.ASSISTENZA]];
|
const MenuStandard = [[Menu.LAVAGNA, Menu.LINK_CONDIVIDERE], [Menu.ZOOM, Menu.ASSISTENZA]];
|
||||||
const MenuPerAdmin = [[Menu.LAVAGNA, Menu.LINK_CONDIVIDERE], [Menu.ZOOM, Menu.ASSISTENZA], [Menu.MIANAVE, Menu.ADMIN, Menu.ALTRO]];
|
const MenuPerAdmin = [[Menu.LAVAGNA, Menu.LINK_CONDIVIDERE], [Menu.ZOOM, Menu.ASSISTENZA], [Menu.ADMIN, Menu.ALTRO]];
|
||||||
const MenuYesNo = [[Menu.SI, Menu.NO]];
|
const MenuYesNo = [[Menu.SI, Menu.NO]];
|
||||||
|
|
||||||
const MenuAdmin = [[Menu.MSGSTAFF, Menu.MSGATUTTI, Menu.INDIETRO], [Menu.MSG_NO_7_REQ, Menu.MSG_NO_9_REQ], [Menu.MSG_TO_NAVE, Menu.MSG_SI_INVITATI_NO_7REQ_INVITATI]];
|
const MenuAdmin = [[Menu.MSGSTAFF, Menu.MSGATUTTI, Menu.INDIETRO], [Menu.MSG_NO_7_REQ, Menu.MSG_NO_9_REQ], [Menu.MSG_TO_NAVE, Menu.MSG_SI_INVITATI_NO_7REQ_INVITATI]];
|
||||||
@@ -299,7 +299,10 @@ module.exports = {
|
|||||||
|
|
||||||
if (mydata.tipomsg === tools.TipoMsg.SEND_LINK_CHAT_DONATORI) {
|
if (mydata.tipomsg === tools.TipoMsg.SEND_LINK_CHAT_DONATORI) {
|
||||||
return printf(tools.gettranslate('SEND_LINK_CHAT_DONATORI', lang), user.name, mydata.msgpar1);
|
return printf(tools.gettranslate('SEND_LINK_CHAT_DONATORI', lang), user.name, mydata.msgpar1);
|
||||||
|
} else if (mydata.tipomsg === tools.TipoMsg.SEND_MSG || mydata.tipomsg === tools.TipoMsg.SEND_MSG_SINGOLO) {
|
||||||
|
return mydata.msgpar1;
|
||||||
}
|
}
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
sendMsgTelegramToNave: async function (idapp, mydata) {
|
sendMsgTelegramToNave: async function (idapp, mydata) {
|
||||||
@@ -317,6 +320,7 @@ module.exports = {
|
|||||||
if (arrnavi) {
|
if (arrnavi) {
|
||||||
for (const nave of arrnavi) {
|
for (const nave of arrnavi) {
|
||||||
const user = await User.findByIndOrder(idapp, nave.ind_order);
|
const user = await User.findByIndOrder(idapp, nave.ind_order);
|
||||||
|
|
||||||
if (!!user) {
|
if (!!user) {
|
||||||
const lang = user.lang;
|
const lang = user.lang;
|
||||||
const idteleg = user.profile.teleg_id;
|
const idteleg = user.profile.teleg_id;
|
||||||
@@ -336,7 +340,7 @@ module.exports = {
|
|||||||
if ((nummsgsent === 1) && (mydata.inviareale)) {
|
if ((nummsgsent === 1) && (mydata.inviareale)) {
|
||||||
try {
|
try {
|
||||||
this.sendMsgTelegramToTheManagers(idapp, 'Inviato messaggio a tutti i Donatori della Nave ' + mydata.navemediatore.riga + '.' + mydata.navemediatore.col + '\n' + mymsg)
|
this.sendMsgTelegramToTheManagers(idapp, 'Inviato messaggio a tutti i Donatori della Nave ' + mydata.navemediatore.riga + '.' + mydata.navemediatore.col + '\n' + mymsg)
|
||||||
}catch (e) {
|
} catch (e) {
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -357,7 +361,7 @@ module.exports = {
|
|||||||
return { nummsgsent, strout };
|
return { nummsgsent, strout };
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
return { nummsgsent , strout };
|
return { nummsgsent, strout };
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -395,13 +399,18 @@ module.exports = {
|
|||||||
sendMsgTelegram: async function (idapp, username, text, alsotomanagers) {
|
sendMsgTelegram: async function (idapp, username, text, alsotomanagers) {
|
||||||
const teleg_id = await User.TelegIdByUsername(idapp, username);
|
const teleg_id = await User.TelegIdByUsername(idapp, username);
|
||||||
const cl = getclTelegByidapp(idapp);
|
const cl = getclTelegByidapp(idapp);
|
||||||
|
let ris = null;
|
||||||
if (cl && teleg_id) {
|
if (cl && teleg_id) {
|
||||||
await cl.sendMsg(teleg_id, text)
|
ris = await cl.sendMsg(teleg_id, text)
|
||||||
}
|
}
|
||||||
|
|
||||||
if (alsotomanagers) {
|
if (cl && teleg_id) {
|
||||||
await this.sendMsgTelegramToTheManagers(idapp, text)
|
if (alsotomanagers) {
|
||||||
|
await this.sendMsgTelegramToTheManagers(idapp, text)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return ris;
|
||||||
},
|
},
|
||||||
|
|
||||||
sendMsgTelegramByIdTelegram: async function (idapp, idtelegram, text, message_id, chat_id, ripr_menuPrec) {
|
sendMsgTelegramByIdTelegram: async function (idapp, idtelegram, text, message_id, chat_id, ripr_menuPrec) {
|
||||||
@@ -667,9 +676,9 @@ class Telegram {
|
|||||||
risp = 'Da te non me l\'aspettavo proprio !! ' + emo.INNOCENT + emo.CROSS_ROSSA;
|
risp = 'Da te non me l\'aspettavo proprio !! ' + emo.INNOCENT + emo.CROSS_ROSSA;
|
||||||
} else if (MsgBot.HAHA.find((rec) => testo.indexOf(rec) > -1) && testo.length < 8) {
|
} else if (MsgBot.HAHA.find((rec) => testo.indexOf(rec) > -1) && testo.length < 8) {
|
||||||
risp = emo.JOY + emo.JOY + emo.JOY;
|
risp = emo.JOY + emo.JOY + emo.JOY;
|
||||||
} else if (testo.length > 1) {
|
} else if (testo.length >= 10) {
|
||||||
noanswer = true;
|
noanswer = true;
|
||||||
risp = 'Non ti capisco... d\'altronde sono solo un Robot ' + emo.ROBOT_FACE + emo.JOY2 + '\n\n(Per AIUTO, contatta la Chat AYNI - HELP)';
|
risp = '[Messaggio inviato allo Staff]\nD\'altronde io sono solo un Robot ' + emo.ROBOT_FACE + emo.JOY2 + '\n\n(Per AIUTO, contatta la Chat AYNI - HELP)';
|
||||||
// risp += '\nClicca qui per entrare nella Chat AYNI - HELP di Supporto\n' + 'https://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w' + '\n\nI miei colleghi umani ti aiuteranno a risolvere !';
|
// risp += '\nClicca qui per entrare nella Chat AYNI - HELP di Supporto\n' + 'https://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w' + '\n\nI miei colleghi umani ti aiuteranno a risolvere !';
|
||||||
await local_sendMsgTelegramToTheManagers(this.idapp, testo, msg, rec.username_bo);
|
await local_sendMsgTelegramToTheManagers(this.idapp, testo, msg, rec.username_bo);
|
||||||
}
|
}
|
||||||
@@ -865,54 +874,70 @@ class Telegram {
|
|||||||
|
|
||||||
let tuttie9 = false;
|
let tuttie9 = false;
|
||||||
|
|
||||||
|
let mystrnave = '';
|
||||||
|
|
||||||
if (user) {
|
if (user) {
|
||||||
mystr += tools.get__('BENVENUTO', msg) + ' ' + user.name + ' (' + user.username + ') ' + emo.DIZZY + '\n\n';
|
mystr += tools.get__('BENVENUTO', msg) + ' ' + user.name + ' (' + user.username + ') ' + emo.DIZZY + '\n\n';
|
||||||
|
|
||||||
tuttie9 = dashboard.myself.qualified && (numpersone >= 2) && invitati_attivi >= 2;
|
tuttie9 = dashboard.myself.qualified && (numpersone >= 2) && invitati_attivi >= 2;
|
||||||
|
|
||||||
if (!tuttie9) {
|
mystrnave = await Nave.getNaveByUser(this.idapp, user.ind_order, user.lang, true);
|
||||||
mystr += dashboard.myself.qualified ? emo.SMILE_STAR + tools.get__('HAI_I_7_REQUISITI', msg) + emo.SMILE_STAR : emo.EXCLAMATION_MARK + tools.get__('NON_HAI_I_7_REQUISITI', msg);
|
|
||||||
mystr += '\n\n';
|
if (mystrnave === '' && tuttie9) {
|
||||||
|
mystr += tools.gettranslate('NO_PROG', user.lang);
|
||||||
}
|
}
|
||||||
mystr += tuttie9 ? emo.SMILE_STAR + tools.get__('HAI_I_9_REQUISITI', msg) + emo.SMILE_STAR : emo.EXCLAMATION_MARK + tools.get__('NON_HAI_I_9_REQUISITI', msg);
|
|
||||||
mystr += '\n\n';
|
|
||||||
|
|
||||||
mystr += tools.get__('INFO_LA_MIA_LAVAGNA', msg);
|
if (!!mystrnave) {
|
||||||
|
mystr += '✨✨✨' + tools.get__('TUE_NAVI', msg) + ':\n';
|
||||||
|
mystr += mystrnave;
|
||||||
|
} else {
|
||||||
|
|
||||||
mystr += '\n' + '1. ' + this.getsymb(emo.ENVELOPE, user.verified_email);
|
if (!tuttie9) {
|
||||||
mystr += tools.get__('EMAIL', msg) + ' ';
|
mystr += dashboard.myself.qualified ? emo.SMILE_STAR + tools.get__('HAI_I_7_REQUISITI', msg) + emo.SMILE_STAR : emo.EXCLAMATION_MARK + tools.get__('NON_HAI_I_7_REQUISITI', msg);
|
||||||
mystr += user.verified_email ? tools.get__('VERIF', msg) : tools.get__('EMAIL_NON_VERIF', msg);
|
mystr += '\n\n';
|
||||||
|
}
|
||||||
|
mystr += tuttie9 ? emo.SMILE_STAR + tools.get__('HAI_I_9_REQUISITI', msg) + emo.SMILE_STAR : emo.EXCLAMATION_MARK + tools.get__('NON_HAI_I_9_REQUISITI', msg);
|
||||||
|
mystr += '\n\n';
|
||||||
|
|
||||||
mystr += '\n2. ' + this.getsymb(emo.ROBOT_FACE, true) + tools.get__('BOT', msg) + ' ';
|
mystr += tools.get__('INFO_LA_MIA_LAVAGNA', msg);
|
||||||
mystr += tools.get__('VERIF', msg);
|
|
||||||
|
|
||||||
mystr += '\n3. ' + this.getsymb(emo.PENCIL, tools.isBitActive(user.profile.saw_and_accepted, shared_consts.Accepted.CHECK_READ_GUIDELINES)) + tools.get__('LINEE_GUIDA', msg);
|
mystr += '\n' + '1. ' + this.getsymb(emo.ENVELOPE, user.verified_email);
|
||||||
mystr += '\n4. ' + this.getsymb(emo.TV, tools.isBitActive(user.profile.saw_and_accepted, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI)) + tools.get__('VIDEO_INTRO', msg);
|
mystr += tools.get__('EMAIL', msg) + ' ';
|
||||||
mystr += '\n5. ' + this.getsymb(emo.EYES, user.profile.saw_zoom_presentation) + tools.get__('ZOOM_PARTECIPATO', msg);
|
mystr += user.verified_email ? tools.get__('VERIF', msg) : tools.get__('EMAIL_NON_VERIF', msg);
|
||||||
mystr += '\n6. ' + this.getsymb(emo.DREAM, this.isdreamset(user)) + tools.get__('SCRITTO_SOGNO', msg);
|
|
||||||
mystr += '\n7. ' + this.getsymb(emo.CREDIT_CARD, this.ispayment(user)) + tools.get__('PAYMENTS', msg);
|
|
||||||
|
|
||||||
|
mystr += '\n2. ' + this.getsymb(emo.ROBOT_FACE, true) + tools.get__('BOT', msg) + ' ';
|
||||||
|
mystr += tools.get__('VERIF', msg);
|
||||||
|
|
||||||
|
mystr += '\n3. ' + this.getsymb(emo.PENCIL, tools.isBitActive(user.profile.saw_and_accepted, shared_consts.Accepted.CHECK_READ_GUIDELINES)) + tools.get__('LINEE_GUIDA', msg);
|
||||||
|
mystr += '\n4. ' + this.getsymb(emo.TV, tools.isBitActive(user.profile.saw_and_accepted, shared_consts.Accepted.CHECK_SEE_VIDEO_PRINCIPI)) + tools.get__('VIDEO_INTRO', msg);
|
||||||
|
mystr += '\n5. ' + this.getsymb(emo.EYES, user.profile.saw_zoom_presentation) + tools.get__('ZOOM_PARTECIPATO', msg);
|
||||||
|
mystr += '\n6. ' + this.getsymb(emo.DREAM, this.isdreamset(user)) + tools.get__('SCRITTO_SOGNO', msg);
|
||||||
|
mystr += '\n7. ' + this.getsymb(emo.CREDIT_CARD, this.ispayment(user)) + tools.get__('PAYMENTS', msg);
|
||||||
|
|
||||||
|
}
|
||||||
// } else{
|
// } else{
|
||||||
// mystr += tools.get__('TELEGRAM_NOT_CONNECTED', msg) + ' ' + emoji.get('e-mail');
|
// mystr += tools.get__('TELEGRAM_NOT_CONNECTED', msg) + ' ' + emoji.get('e-mail');
|
||||||
}
|
}
|
||||||
|
|
||||||
// numpersone = 2;
|
// numpersone = 2;
|
||||||
|
|
||||||
mystr += '\n8. ' + this.getsymb(emo.INVITATI, numpersone >= 2, numpersone, numpersone, numpersone >= 3) + tools.get__('INVITATI', msg);
|
if (!mystrnave) {
|
||||||
mystr += '\n9. ' + this.getsymb(emo.INVITATI, invitati_attivi >= 2, invitati_attivi, invitati_attivi, invitati_attivi >= 3) + tools.get__('INVITATI_ATTIVI', msg) + '\n' + '\n';
|
mystr += '\n8. ' + this.getsymb(emo.INVITATI, numpersone >= 2, numpersone, numpersone, numpersone >= 3) + tools.get__('INVITATI', msg);
|
||||||
|
mystr += '\n9. ' + this.getsymb(emo.INVITATI, invitati_attivi >= 2, invitati_attivi, invitati_attivi, invitati_attivi >= 3) + tools.get__('INVITATI_ATTIVI', msg) + '\n' + '\n';
|
||||||
|
|
||||||
if (numpersone > 0) {
|
if (numpersone > 0) {
|
||||||
mystr += tools.get__('INVITATI_LISTA') + ':\n';
|
mystr += tools.get__('INVITATI_LISTA') + ':\n';
|
||||||
|
|
||||||
let index = 1;
|
let index = 1;
|
||||||
dashboard.downline.forEach((user) => {
|
dashboard.downline.forEach((user) => {
|
||||||
mystr += emoji.get('star-struck') + ` ${index}°: `;
|
mystr += emoji.get('star-struck') + ` ${index}°: `;
|
||||||
mystr += (user._doc.qualified) ? emo.CHECK_VERDE : emo.CROSS_ROSSA;
|
mystr += (user._doc.qualified) ? emo.CHECK_VERDE : emo.CROSS_ROSSA;
|
||||||
mystr += `${user.name} ${user.surname} (${user.username})\n`;
|
mystr += `${user.name} ${user.surname} (${user.username})\n`;
|
||||||
index++;
|
index++;
|
||||||
});
|
});
|
||||||
} else {
|
} else {
|
||||||
mystr += tools.get__('NESSUN_INVITATO') + tools.ACAPO;
|
mystr += tools.get__('NESSUN_INVITATO') + tools.ACAPO;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -53,13 +53,14 @@ textlang = {
|
|||||||
"partecipanti": "partecipanti",
|
"partecipanti": "partecipanti",
|
||||||
'TESTO_ASSISTENZA': "Per entrare nel Sito AYNI:\nhttps://ayni.gifteconomy.app\n\nHai dimenticato la Password per accedere al sito?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\nChat AYNI BOT (questa):\nhttps://t.me/notevoleaynibot\n\nChat AYNI - EMPOWER: Entra ⛩ nella nostra Community chat:\n https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g\n\nChat AYNI-BIBLIO: https://t.me/joinchat/AL2qKExZKvenLgpVhOyefQ \n\nChat di Aiuto e Supporto: 'AYNI - HELP'\nhttps://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w\n1 - Fai la tua domanda e chiedi assistenza.\n2 - Dopo aver ricevuto aiuto esci dalla chat.\nPotrai rientrare ogni qualvolta ne avrai la necessità.",
|
'TESTO_ASSISTENZA': "Per entrare nel Sito AYNI:\nhttps://ayni.gifteconomy.app\n\nHai dimenticato la Password per accedere al sito?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\nChat AYNI BOT (questa):\nhttps://t.me/notevoleaynibot\n\nChat AYNI - EMPOWER: Entra ⛩ nella nostra Community chat:\n https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g\n\nChat AYNI-BIBLIO: https://t.me/joinchat/AL2qKExZKvenLgpVhOyefQ \n\nChat di Aiuto e Supporto: 'AYNI - HELP'\nhttps://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w\n1 - Fai la tua domanda e chiedi assistenza.\n2 - Dopo aver ricevuto aiuto esci dalla chat.\nPotrai rientrare ogni qualvolta ne avrai la necessità.",
|
||||||
'BENVENUTO': "Benvenuto",
|
'BENVENUTO': "Benvenuto",
|
||||||
|
'TUE_NAVI': "Ecco le tue Navi programmate",
|
||||||
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||||
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||||
'HAI_I_9_REQUISITI': 'COMPLIMENTI!\nHai Completato TUTTI i 9 Passi della Guida! Grazie per Aiutare AYNI ad Espandersi!',
|
'HAI_I_9_REQUISITI': 'COMPLIMENTI!\nHai Completato TUTTI i 9 Passi della Guida! Grazie per Aiutare AYNI ad Espandersi!',
|
||||||
'NON_HAI_I_9_REQUISITI': 'Ricorda che puoi Aiutare a far Crescere ed Espandere il Movimento, Condividendo con chiunque questo nostro viaggio!',
|
'NON_HAI_I_9_REQUISITI': 'Ricorda che puoi Aiutare a far Crescere ed Espandere il Movimento, Condividendo con chiunque questo nostro viaggio!',
|
||||||
'INFO_LA_MIA_LAVAGNA': '✨ Lista dei Passi: ✨ \n',
|
'INFO_LA_MIA_LAVAGNA': '✨ Lista dei Passi: ✨ \n',
|
||||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\nPer vedere lo stato dei tuoi invitati, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\nPer vedere lo stato della tua Nave e dei tuoi invitati, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
||||||
'INFO_LAVAGNA_SITO': 'Per vedere lo stato dei tuoi invitati, sul sito AYNI, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
'INFO_LAVAGNA_SITO': 'Per vedere in dettaglio lo stato della tua Nave, sul sito AYNI, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
||||||
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito di Ayni:\n%s\n\nLink da condividere per partecipare allo Zoom (Conferenza OnLine):\n%s',
|
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito di Ayni:\n%s\n\nLink da condividere per partecipare allo Zoom (Conferenza OnLine):\n%s',
|
||||||
'ZOOM_CONFERENCE': 'Qui trovi le date di programmazione agli Zoom:',
|
'ZOOM_CONFERENCE': 'Qui trovi le date di programmazione agli Zoom:',
|
||||||
"NON_VERIF": "Non Verificata",
|
"NON_VERIF": "Non Verificata",
|
||||||
@@ -94,13 +95,14 @@ textlang = {
|
|||||||
"partecipanti": "participantes",
|
"partecipanti": "participantes",
|
||||||
'TESTO_ASSISTENZA': "Per entrare nel Sito AYNI:\nhttps://ayni.gifteconomy.app\n\nHai dimenticato la Password per accedere al sito?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\nChat AYNI BOT (questa):\nhttps://t.me/notevoleaynibot\n\nChat AYNI - EMPOWER: Entra ⛩ nella nostra Community chat:\n https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g\n\nChat AYNI-BIBLIO: https://t.me/joinchat/AL2qKExZKvenLgpVhOyefQ \n\nChat di Aiuto e Supporto: 'AYNI - HELP'\nhttps://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w\n1 - Fai la tua domanda e chiedi assistenza.\n2 - Dopo aver ricevuto aiuto esci dalla chat.\nPotrai rientrare ogni qualvolta ne avrai la necessità.",
|
'TESTO_ASSISTENZA': "Per entrare nel Sito AYNI:\nhttps://ayni.gifteconomy.app\n\nHai dimenticato la Password per accedere al sito?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\nChat AYNI BOT (questa):\nhttps://t.me/notevoleaynibot\n\nChat AYNI - EMPOWER: Entra ⛩ nella nostra Community chat:\n https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g\n\nChat AYNI-BIBLIO: https://t.me/joinchat/AL2qKExZKvenLgpVhOyefQ \n\nChat di Aiuto e Supporto: 'AYNI - HELP'\nhttps://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w\n1 - Fai la tua domanda e chiedi assistenza.\n2 - Dopo aver ricevuto aiuto esci dalla chat.\nPotrai rientrare ogni qualvolta ne avrai la necessità.",
|
||||||
'BENVENUTO': "Benvenuto",
|
'BENVENUTO': "Benvenuto",
|
||||||
|
'TUE_NAVI': "Ecco le tue Navi programmate",
|
||||||
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||||
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||||
'HAI_I_9_REQUISITI': 'COMPLIMENTI!\nHai Completato TUTTI i 9 Passi della Guida! Grazie per Aiutare AYNI ad Espandersi!',
|
'HAI_I_9_REQUISITI': 'COMPLIMENTI!\nHai Completato TUTTI i 9 Passi della Guida! Grazie per Aiutare AYNI ad Espandersi!',
|
||||||
'NON_HAI_I_9_REQUISITI': 'Ricorda che puoi Aiutare a far Crescere ed Espandere il Movimento, Condividendo con chiunque questo nostro viaggio!',
|
'NON_HAI_I_9_REQUISITI': 'Ricorda che puoi Aiutare a far Crescere ed Espandere il Movimento, Condividendo con chiunque questo nostro viaggio!',
|
||||||
'INFO_LA_MIA_LAVAGNA': '✨ Lista dei Passi: ✨ \n',
|
'INFO_LA_MIA_LAVAGNA': '✨ Lista dei Passi: ✨ \n',
|
||||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\nPer vedere lo stato dei tuoi invitati, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\nPer vedere lo stato della tua Nave e dei tuoi invitati, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
||||||
'INFO_LAVAGNA_SITO': 'Per vedere lo stato dei tuoi invitati, sul sito AYNI, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
'INFO_LAVAGNA_SITO': 'Per vedere in dettaglio lo stato della tua Nave, sul sito AYNI, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
||||||
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito di Ayni:\n%s\n\nLink da condividere per partecipare allo Zoom (Conferenza OnLine):\n%s',
|
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito di Ayni:\n%s\n\nLink da condividere per partecipare allo Zoom (Conferenza OnLine):\n%s',
|
||||||
'ZOOM_CONFERENCE': 'Qui trovi le date di programmazione agli Zoom:',
|
'ZOOM_CONFERENCE': 'Qui trovi le date di programmazione agli Zoom:',
|
||||||
"NON_VERIF": "Non Verificata",
|
"NON_VERIF": "Non Verificata",
|
||||||
@@ -132,13 +134,14 @@ textlang = {
|
|||||||
"partecipanti": "participants",
|
"partecipanti": "participants",
|
||||||
'TESTO_ASSISTENZA': "Per entrare nel Sito AYNI:\nhttps://ayni.gifteconomy.app\n\nHai dimenticato la Password per accedere al sito?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\nChat AYNI BOT (questa):\nhttps://t.me/notevoleaynibot\n\nChat AYNI - EMPOWER: Entra ⛩ nella nostra Community chat:\n https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g\n\nChat AYNI-BIBLIO: https://t.me/joinchat/AL2qKExZKvenLgpVhOyefQ \n\nChat di Aiuto e Supporto: 'AYNI - HELP'\nhttps://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w\n1 - Fai la tua domanda e chiedi assistenza.\n2 - Dopo aver ricevuto aiuto esci dalla chat.\nPotrai rientrare ogni qualvolta ne avrai la necessità.",
|
'TESTO_ASSISTENZA': "Per entrare nel Sito AYNI:\nhttps://ayni.gifteconomy.app\n\nHai dimenticato la Password per accedere al sito?\nhttps://ayni.gifteconomy.app/requestresetpwd\n\nChat AYNI BOT (questa):\nhttps://t.me/notevoleaynibot\n\nChat AYNI - EMPOWER: Entra ⛩ nella nostra Community chat:\n https://t.me/joinchat/C741mkx5QYXu-kyYCYvA8g\n\nChat AYNI-BIBLIO: https://t.me/joinchat/AL2qKExZKvenLgpVhOyefQ \n\nChat di Aiuto e Supporto: 'AYNI - HELP'\nhttps://t.me/joinchat/C741mlVmB_RMcOUpNqWC8w\n1 - Fai la tua domanda e chiedi assistenza.\n2 - Dopo aver ricevuto aiuto esci dalla chat.\nPotrai rientrare ogni qualvolta ne avrai la necessità.",
|
||||||
'BENVENUTO': "Benvenuto",
|
'BENVENUTO': "Benvenuto",
|
||||||
|
'TUE_NAVI': "Ecco le tue Navi programmate",
|
||||||
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
'HAI_I_7_REQUISITI': 'PRIMI PASSI OK!\nHai i Primi 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||||
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
'NON_HAI_I_7_REQUISITI': 'Attenzione!\nAncora non hai i 7 Requisiti per Entrare nella Lista d\'Imbarco!',
|
||||||
'HAI_I_9_REQUISITI': 'COMPLIMENTI!\nHai Completato TUTTI i 9 Passi della Guida! Grazie per Aiutare AYNI ad Espandersi!',
|
'HAI_I_9_REQUISITI': 'COMPLIMENTI!\nHai Completato TUTTI i 9 Passi della Guida! Grazie per Aiutare AYNI ad Espandersi!',
|
||||||
'NON_HAI_I_9_REQUISITI': 'Ricorda che puoi Aiutare a far Crescere ed Espandere il Movimento, Condividendo con chiunque questo nostro viaggio!',
|
'NON_HAI_I_9_REQUISITI': 'Ricorda che puoi Aiutare a far Crescere ed Espandere il Movimento, Condividendo con chiunque questo nostro viaggio!',
|
||||||
'INFO_LA_MIA_LAVAGNA': '✨ Lista dei Passi: ✨ \n',
|
'INFO_LA_MIA_LAVAGNA': '✨ Lista dei Passi: ✨ \n',
|
||||||
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\nPer vedere lo stato dei tuoi invitati, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
'INFO_LAVAGNA_SITO_COMPLETARE': 'Per completare tutti i requisiti vai sul sito:\n%s\nPer vedere lo stato della tua Nave e dei tuoi invitati, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
||||||
'INFO_LAVAGNA_SITO': 'Per vedere lo stato dei tuoi invitati, sul sito AYNI, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
'INFO_LAVAGNA_SITO': 'Per vedere in dettaglio lo stato della tua Nave, sul sito AYNI, clicca sulle 3 linee in alto a sinistra ed accedi alla voce "Lavagna".\n',
|
||||||
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito di Ayni:\n%s\n\nLink da condividere per partecipare allo Zoom (Conferenza OnLine):\n%s',
|
'INFO_LINK_DA_CONDIVIDERE': 'Link da condividere ai tuoi invitati per farli registrare al sito di Ayni:\n%s\n\nLink da condividere per partecipare allo Zoom (Conferenza OnLine):\n%s',
|
||||||
'ZOOM_CONFERENCE': 'Qui trovi le date di programmazione agli Zoom:',
|
'ZOOM_CONFERENCE': 'Qui trovi le date di programmazione agli Zoom:',
|
||||||
"NON_VERIF": "Non Verificata",
|
"NON_VERIF": "Non Verificata",
|
||||||
@@ -184,6 +187,8 @@ module.exports = {
|
|||||||
|
|
||||||
TipoMsg: {
|
TipoMsg: {
|
||||||
SEND_LINK_CHAT_DONATORI: 1,
|
SEND_LINK_CHAT_DONATORI: 1,
|
||||||
|
SEND_MSG: 2,
|
||||||
|
SEND_MSG_SINGOLO: 3,
|
||||||
},
|
},
|
||||||
|
|
||||||
Placca: {
|
Placca: {
|
||||||
|
|||||||
Reference in New Issue
Block a user