distube-hastebin
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

distube-hastebin

A DisTube custom plugin for supporting Hastebin URL.

Feature

This plugin grabs the songs on Hastebin then searches on YouTube and plays with DisTube.

Installation

With npm:

npm install distube-hastebin@latest

With yarn:

yarn add distube-hastebin@latest

With pnpm:

pnpm add distube-hastebin@latest

Usage

const Discord = require("discord.js");
const client = new Discord.Client();
const { DisTube } = require("distube");
const { HastebinPlugin } = require("distube-hastebin");
const distube = new DisTube(client, {
  plugins: [new HastebinPlugin()],
});

Documentation

HastebinPlugin([HastebinPluginOptions])

  • host (string, optional): The host of Hastebin. Defaults to https://www.toptal.com/developers/hastebin/.

Example

new HastebinPlugin({
  host: "https://your-hastebin-host.com", // Your hastebin host.
});

Package Sidebar

Install

npm i distube-hastebin

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

64.3 kB

Total Files

10

Last publish

Collaborators

  • arahiko-ayami