New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

yiffspot.js

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yiffspot.js

A module that allows you to easily interact with YiffSpot

  • 1.1.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

YiffSpot.JS


npm version npm downloads

About

yiffspot.js is a module that allows you to easily interact with YiffSpot.

Installation

Node.js 10.0.0 or newer is required.

npm install yiffspot.js
yarn add yiffspot.js
pnpm add yiffspot.js

Optional packages

  • bufferutil - Allows websocket client to efficiently perform operations such as masking and unmasking the data payload of the WebSocket frames. (npm install bufferutil)
  • utf-8-validate Allows websocket client to efficiently check if a message contains valid UTF-8. (npm install utf-8-validate)

Example usage

const YiffSpotJS = require('yiffspot.js');

const client = new YiffSpotJS.Client({
    "kinks": ["Deepthroat"], // or ["any"]
    "specie": "Arctic Fox",
    "role": "Switch",
    "gender": "Male"
});

client.on("ready", () => {
    console.log("Ready!");
    client.findPartner({
        "specie": ["Arctic Fox"], // or ["any"]
        "role": ["Submissive"], // or ["Switch"]
        "gender": ["Female"] // or ["any"]
    });
});

client.on("message", (message) => {
    console.log(`Partner: ${message.text}`);
    client.startTyping();
    message.reply("Got to go! </3");
    client.stopTyping();
    console.log("Me: Got to go! </3");
    client.destroy();
});


client.on("partnerLeft", () => {
    client.destroy();
});

client.on("partnerConnected", (partner) => {
    client.startTyping();
    partner.send("Hello!");
    client.stopTyping();
});

Note

Keywords

FAQs

Package last updated on 30 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc