FrauJulian / discord-audio-stream

๐Ÿ–ผ๏ธ NPM Package to stream any audio link on discord.

Home Page:https://www.npmjs.com/package/discord-audio-stream

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Discord Audio Stream

npm GitHub package.json version GitHub Repo stars

This NPM package was created to make it easier to stream audio to Discord.

There is a security feature of discord that stops the stream of audio after some time. This problem can be solved by disconnecting the Discord channel every 1.5 hours for 2 seconds and then reconnecting the channel. (If you use this package!) I recommend using a database to store the data e.g. MySQL, SQLite, json file and other database types.

The package does not fix this error yet. However, it is currently being worked on!

This module is designed to work with discord.js v14. This package doesn't support older versions!

๐Ÿ‘‹ Support

Pease create a bug post on github or write fraujulian on discord!

๐Ÿ“ Usage

Install package

npm i discord-audio-stream

or

yarn add discord-audio-stream

Code Snippet - Start

const Audio = require("discord-audio-stream");

Audio.StreamStart({
    imvci: 0, //Voice Channel ID e.g. interaction.member.voice.channel.id
    igi: 0, //Guild ID e.g. interaction.guild.id
    igv: 0, //Bot Voice Adapter e.g. interaction.guild.voiceAdapterCreator
    type: "", //Choose the Stream resource - File or Link or Analyze
    Resource: "", //Link to File e.g. ../assets/Stream.mp3 or Link to Audio Stream e.g. YouTube Video or LautFM Stream Link
})

Code Snippet - Stop

const Audio = require("discord-audio-stream");

Audio.StreamStart({
    igi: 0, //Guild ID e.g. interaction.guild.id
})

๐Ÿค Enjoy the package?

Give it a star โญ on github or donate a hot chocolate!

About

๐Ÿ–ผ๏ธ NPM Package to stream any audio link on discord.

https://www.npmjs.com/package/discord-audio-stream

License:BSD 3-Clause "New" or "Revised" License


Languages

Language:TypeScript 100.0%