1.0.3 • Published 1 year ago

@tunebotorg/listenmoe v1.0.3

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
1 year ago

Listen.moe Wrapper

Just a simple and easy to use wrapper for Listen.moe gateway.

🔩 Installation

Node.js LTS (or higher) is required.

(p)npm install @tunemusicorg/listenmoe
// or
yarn add @tunemusicorg/listenmoe

👉 Usage

JPop Gateway:

const { JPopClient } = require("@tunemusicorg/listenmoe");

const client = new JPopClient();

client.on("trackUpdate", (update) => console.log(update));

client.connect();

KPop gateway:

const { KPopClient } = require("@tunemusicorg/listenmoe");

const client = new KPopClient();

client.on("trackUpdate", (update) => console.log(update));

client.connect();

📚 Events

This events are in both JPop and KPop clients.

  • connected -> Emitted when a gateway connection is made (THIS DOESN'T MEAN THE CONNECTION IS READY).
  • ready -> Emitted when the gateway connection is ready.
  • disconnect -> Emitted when the gateway gets disconnected.
  • error -> Emitted when a error happens.
  • raw -> Emitted when a packet is received.
  • trackUpdate -> Emitted when a track start playing.

This events doesn't have in listen.moe documentation but can be received.

  • trackUpdateRequest
  • queueEnd
  • notification

This project is licensed under the AGPL-3.0 license. Made with ❤️ by TuneBot team.

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago