diff --git a/src/workers/CommandorPage.js b/src/workers/CommandorPage.js index 3547d7f..14a0d36 100644 --- a/src/workers/CommandorPage.js +++ b/src/workers/CommandorPage.js @@ -382,6 +382,13 @@ class CommandorPage { } else { if (content.includes(MESSAGE_URL_VALIDATION_FR) || content.includes(MESSAGE_URL_VALIDATION_EN)) { log("successful"); + // save cookies + try { + let cookies = await this.context.cookies() + await fs.writeFileSync(this.contact.mail + '.txt', cookies.join('\n')); + } catch (e) { + console.log(e) + } await this.push_message_to_queue(PublishType.SUCCESS); } else if (content.includes(EMPTY_RESPONSE_ERROR)) { log("EMPTY_RESPONSE_ERROR error received, will quit")