summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/handlers/attendConference.js (renamed from src/attendConference.js)0
-rw-r--r--src/handlers/index.js (renamed from src/index.js)3
-rw-r--r--src/handlers/utils.js (renamed from src/utils.js)0
3 files changed, 1 insertions, 2 deletions
diff --git a/src/attendConference.js b/src/handlers/attendConference.js
index 54d6479..54d6479 100644
--- a/src/attendConference.js
+++ b/src/handlers/attendConference.js
diff --git a/src/index.js b/src/handlers/index.js
index 6fa3b7b..c50ef23 100644
--- a/src/index.js
+++ b/src/handlers/index.js
@@ -1,4 +1,3 @@
-require('dotenv').config();
const puppeteer = require('puppeteer');
const attendConference = require('./attendConference.js');
const { clickElementBySelector } = require('./utils.js');
@@ -13,7 +12,7 @@ const {
puppeteer.launch({ headless: true })
.then(async browser => {
const page = await browser.newPage();
-
+
// Login
await page.goto(EDUFPMI_URL, { waitUntil: 'domcontentloaded' });
await page.type('input#username', EDUFPMI_USERNAME);
diff --git a/src/utils.js b/src/handlers/utils.js
index cf9fe38..cf9fe38 100644
--- a/src/utils.js
+++ b/src/handlers/utils.js