1.0.4 • Published 3 years ago

discord-broadcast v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
3 years ago

🔴 Discord broadcast

  • Easy and fast, you can make an audio broadcast from YouTube directly to Discord

Getting Started

You can start install the package on your project:

npm i discord-broadcast discord.js@dev @discordjs/voice tweetnacl
  • ⛔ All these packages must be downloaded in order for the package to work successfully without problems, and it must be node 14 version and above

Features

  • Supports stage and audio channels
  • You can put a direct link to the video you want from YouTube easily
  • It plays with high quality and clear and pure sound
  • Easy and simple and you can do it in event ready or event message

How to use?

Requirements

  • Node 14.x+
  • npm i @discordjs/voice
  • npm i discord.js@dev
  • npm i tweetnacl
  • Activate intents for your bot in Discord Developer ds

Example

  • Example of a simple way of working
const broadcast = require(`discord-broadcast`)//npm i discord-broadcast
const Discord = require('discord.js');//npm i discord.js@dev
const client = new Discord.Client({intents: ["GUILDS", "GUILD_MESSAGES", 'GUILD_MESSAGES', 'GUILD_VOICE_STATES']});
const discordvoice = require('@discordjs/voice');//npm i @discordjs/voice

client.on(`ready`, async () => {
  console.log(`Bot Ready`)
  await broadcast.start({
    channel: `865953633383612457`, //The ID of the audio channel or stage channel that you want
    youtube: `https://www.youtube.com/watch?v=Tmy8JdM7AUI`, //The link to the live broadcast you want from YouTube
    client:client, //Put the value of your client in discordjs
    discordvoice:discordvoice //Put the value of your discordvoice in @discordjs/voice
  })
})

client.login(`Your bot token`)

MuslimBot

Any bug or suggestion !

  • Contact With Me Discord: Shuruhatik#0001
  • or Discord Server ST Studio

ST STudio

License

1.0.4

3 years ago

1.0.1

3 years ago

1.0.3

3 years ago

1.0.0

3 years ago