chore: example

This commit is contained in:
Elysia
2024-07-25 10:25:11 +07:00
parent 8113789999
commit eb96d562ba
4 changed files with 43 additions and 0 deletions

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();

View File

@@ -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();