1.0.1 • Published 2 years ago

distube-hastebin v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.
});