meowclient
v3.1.0
Published
Client for Scratch in JS
Downloads
27
Readme
Meowclient
Getting Started
Follow the steps below:
⏳ 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 in the Scratch Terms of Use so I won't add those features to meowclient unless you have a good reason, although if you know how to use the Scratch API you can definitely make your own fetch requests with the session.
Thanks
Thanks to Scratchclient and Raihan142857 (CubeyTheCube) for a lot of the login stuff!