Skip to content

webdev03/meowclient

Repository files navigation

Meowclient Test

A library to connect to Scratch.

Installation

If you run this install command you will get the latest version of meowclient in your package.json.

 npm install meowclient

Example (async)

import { ScratchSession, Profile } from "meowclient";
const session = new ScratchSession();
await session.init("user", "pass");
const me = new Profile(session, session.username);
console.log("My status is " + (await me.getStatus()));

Some features are available without logging in if you don't run the session.init function.

The CJS way (if you still use it)

const { ScratchSession } = require("meowclient");
const session = new ScratchSession();
await session.init("user", "pass");
const me = new Profile(session, session.username);
// User.getStatus gets the status of the user, either "New Scratcher", "Scratcher" or "Scratch Team"
console.log("My status is " + (await me.getStatus()));

Note

Automating social actions such as loving, favouriting, commenting, or following users is not allowed if you run it automatically! Only use these features if you are doing it manually! I am not responsible if your Scratch account gets restricted because of you being reckless with this!

Thanks

Thanks to Scratchclient and Raihan142857 (CubeyTheCube) for a lot of the login stuff!