A DisTube custom plugin for supporting Hastebin URL.
This plugin grabs the songs on Hastebin then searches on YouTube and plays with DisTube.
With npm:
npm install distube-hastebin@latest
With yarn:
yarn add distube-hastebin@latest
With pnpm:
pnpm add distube-hastebin@latest
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()],
});
host
(string, optional): The host of Hastebin. Defaults tohttps://www.toptal.com/developers/hastebin/
.
new HastebinPlugin({
host: "https://your-hastebin-host.com", // Your hastebin host.
});