chore: example
This commit is contained in:
@@ -1,5 +1,15 @@
|
|||||||
// Join a voice channel and do nothing
|
// Join a voice channel and do nothing
|
||||||
|
|
||||||
|
/*
|
||||||
|
Install:
|
||||||
|
- An Opus library: @discordjs/opus or opusscript
|
||||||
|
- An encryption packages:
|
||||||
|
+ sodium (best performance)
|
||||||
|
+ libsodium-wrappers
|
||||||
|
+ tweetnacl (slowest)
|
||||||
|
- ffmpeg (install and add to your system environment)
|
||||||
|
*/
|
||||||
|
|
||||||
const { Client } = require('../../src/index');
|
const { Client } = require('../../src/index');
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
// Join a channel and play music, like a Discord bot.
|
// Join a channel and play music, like a Discord bot.
|
||||||
|
|
||||||
|
/*
|
||||||
|
Install:
|
||||||
|
- An Opus library: @discordjs/opus or opusscript
|
||||||
|
- An encryption packages:
|
||||||
|
+ sodium (best performance)
|
||||||
|
+ libsodium-wrappers
|
||||||
|
+ tweetnacl (slowest)
|
||||||
|
- ffmpeg (install and add to your system environment)
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
const { Client } = require('../../src/index');
|
const { Client } = require('../../src/index');
|
||||||
const ytdl = require('@distube/ytdl-core'); // better than ytdl-core
|
const ytdl = require('@distube/ytdl-core'); // better than ytdl-core
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|||||||
@@ -15,6 +15,17 @@ Thanks to mrjvs for discovering how Discord transmits data and the VP8 codec.
|
|||||||
Please use the @dank074/discord-video-stream library for the best support.
|
Please use the @dank074/discord-video-stream library for the best support.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/*
|
||||||
|
Install:
|
||||||
|
- An Opus library: @discordjs/opus or opusscript
|
||||||
|
- An encryption packages:
|
||||||
|
+ sodium (best performance)
|
||||||
|
+ libsodium-wrappers
|
||||||
|
+ tweetnacl (slowest)
|
||||||
|
- ffmpeg (install and add to your system environment)
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
const { Client } = require('../../src/index');
|
const { Client } = require('../../src/index');
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,16 @@
|
|||||||
// https://v12.discordjs.guide/voice/receiving-audio.html#basic-usage
|
// https://v12.discordjs.guide/voice/receiving-audio.html#basic-usage
|
||||||
|
|
||||||
|
/*
|
||||||
|
Install:
|
||||||
|
- An Opus library: @discordjs/opus or opusscript
|
||||||
|
- An encryption packages:
|
||||||
|
+ sodium (best performance)
|
||||||
|
+ libsodium-wrappers
|
||||||
|
+ tweetnacl (slowest)
|
||||||
|
- ffmpeg (install and add to your system environment)
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
const { Client } = require('../../src/index');
|
const { Client } = require('../../src/index');
|
||||||
const client = new Client();
|
const client = new Client();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user