Skip to content

Commit

Permalink
Update Leaderboard Element
Browse files Browse the repository at this point in the history
  • Loading branch information
domi-btnr committed Sep 2, 2023
1 parent e2c4121 commit 7614b47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ puppeteer.launch({
const [year, month] = getMonthAndYear();
if (!fs.existsSync(`${year}`)) fs.mkdirSync(`${year}`);
await page.goto(`https://mee6.xyz/leaderboard/${SERVER_ID}`);
await page.waitForXPath("//*[@id='leaderboard.top100']"); /* Leaderboard Element */
await page.waitForXPath("//*[@id='root']/div[3]/div/div[1]"); /* Leaderboard Element */
await page.screenshot({ path: path.join(`${year}`, `${month}.png`) });
await browser.close();
console.log("Screenshot created")
Expand Down

0 comments on commit 7614b47

Please sign in to comment.