tiny fix for the audio bot #1
2 changed files with 2 additions and 2 deletions
|
@ -15,7 +15,7 @@
|
||||||
"typescript": "^5.3.3"
|
"typescript": "^5.3.3"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@discordjs/opus": "^0.9.0",
|
"opusscript": "^0.1.1",
|
||||||
"@discordjs/voice": "^0.16.1",
|
"@discordjs/voice": "^0.16.1",
|
||||||
"discord.js": "^14.14.1",
|
"discord.js": "^14.14.1",
|
||||||
"libsodium-wrappers": "^0.7.13",
|
"libsodium-wrappers": "^0.7.13",
|
||||||
|
|
|
@ -111,7 +111,7 @@ main();
|
||||||
function audioStream() {
|
function audioStream() {
|
||||||
if (!audioprc) return;
|
if (!audioprc) return;
|
||||||
stream = new MemoryStream();
|
stream = new MemoryStream();
|
||||||
audioprc.stdout.pipe(stream);
|
audioprc.stdout.pipe(stream as unknown as NodeJS.WritableStream);
|
||||||
player.play(createAudioResource(stream, {
|
player.play(createAudioResource(stream, {
|
||||||
inputType: StreamType.Raw,
|
inputType: StreamType.Raw,
|
||||||
inlineVolume: false
|
inlineVolume: false
|
||||||
|
|
Loading…
Reference in a new issue