Options
All
  • Public
  • Public/Protected
  • All
Menu

Class default

The main WaifuSocket class

Hierarchy

  • default

Index

Constructors

Properties

rest: Rest
socket: Socket

Methods

  • close(): void
  • Generates a large image of a waifu

    Parameters

    • waifu: string | SocketWaifu

      a waifu or her seeds

    • Optional size: number

      currently unused

    Returns Promise<SocketWaifu>

  • genGrid(step: 0): Promise<grid>
  • genGrid(step: 1 | 2 | 3, waifu: string | SocketWaifu): Promise<grid>
  • Generates 16 new waifus

    Parameters

    • step: 0
      • 0: all attributes
        1: color
        2: details
        3: pose

    Returns Promise<grid>

  • Generates 16 new waifus

    Parameters

    • step: 1 | 2 | 3
      • 0: all attributes
        1: color
        2: details
        3: pose
    • waifu: string | SocketWaifu

      a waifu or her seeds

    Returns Promise<grid>

  • login(cookie?: string): Promise<default>
  • Logs in and connects to the websocket.

    Parameters

    • Optional cookie: string

      your "user_remember_me" cookie on waifulabs.com

    Returns Promise<default>

  • Saves a waifu to your collection

    Parameters

    • waifu: string | SocketWaifu

      a waifu or her seeds

    • name: string

      a cute waifu needs a cute name

    Returns Promise<RestWaifu & { seeds: string }>

Generated using TypeDoc