Options
All
  • Public
  • Public/Protected
  • All
Menu

waifusocket

WaifuSocket

npm

node module to interface with the new waifulabs v2 websocket api

Documentation

Install

npm i waifusocket

Usage example

import fs from 'fs/promises';
import { WaifuSocket } from 'waifusocket';

const socket = await new WaifuSocket().login('SFMyNTY.JUSTSOMERANDOMCOOKIE');

const grid = await ws.genGrid();
console.log(grid.length);

const big = await ws.genBig(grid[0].seeds);
await fs.writeFile('./image.png', big.image);

ws.close();

Generated using TypeDoc