distube-hastebin
v1.0.1
Published
A DisTube custom plugin for supporting Hastebin.
Downloads
4
Maintainers
Readme
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 tohttps://www.toptal.com/developers/hastebin/
.
Example
new HastebinPlugin({
host: "https://your-hastebin-host.com", // Your hastebin host.
});