Skip to content

Releases: BebanCode/commandkit-plugin-riffy

v0.0.2-part-2

20 Jul 16:10

Choose a tag to compare

v0.0.1

14 Jul 14:28

Choose a tag to compare

This is the initial release of commandkit-plugin-riffy.

This plugin integrates the Riffy Lavalink client with the CommandKit framework. It is designed to manage the Riffy client's lifecycle and bridge all of its events into the CommandKit event system, providing a streamlined way to handle audio playback.

Core Features

  • Automatically initializes and manages the Riffy client.
  • Bridges Riffy events to a configurable CommandKit event namespace (defaults to 'riffy').
  • The Riffy instance is attached to the client object (client.riffy) for easy access.

Installation

To install the package, run the following command:

npm install commandkit-plugin-riffy

Basic Usage

To use the plugin, register it in your commandkit.config.ts file:

import { defineConfig } from 'commandkit';
import { riffyPlugin } from 'commandkit-plugin-riffy';

export default defineConfig({
  plugins: [
    riffyPlugin({
      riffyNodes: [
        {
          host: 'localhost',
          port: 2333,
          password: 'your_lavalink_password',
        },
      ],
    }),
  ],
});

As this is the first version, please report any bugs or issues by opening an issue on the repository.