To use this you will need to run
npm install meowclient canvas dotenvThen create a .env file in this format
SCRATCH_USERNAME=user
SCRATCH_PASSWORD=pass| import "dotenv/config" | |
| import * as meowclient from "meowclient"; | |
| import { parse } from "node-html-parser" | |
| import { DateTime } from "luxon"; | |
| const session = new meowclient.ScratchSession(); | |
| await session.init(process.env['SCRATCH_USERNAME'], process.env['SCRATCH_PASSWORD']); | |
| const myProfile = new meowclient.Profile(session, session.username); | |
| const profileAPI = await myProfile.getUserAPI(); | |
| const joinedAt = DateTime.fromISO(profileAPI.history.joined); | |
| const currentDate = DateTime.now(); |