chebro / discord-voice-recorder Goto Github PK
View Code? Open in Web Editor NEWA nifty script that can pipe out audio from a discord voice channel to your local storage. A discord voice recorder!
License: MIT License
A nifty script that can pipe out audio from a discord voice channel to your local storage. A discord voice recorder!
License: MIT License
When leaving a channel, I'm meeting the following error :
C:\Users\remon\Documents\workspace\discord-voice-recorder\bin\commands.js:48
voiceChannel.leave();
^TypeError: Cannot read property 'leave' of null
at Object.exports.exit (C:\Users\remon\Documents\workspace\discord-voice-recorder\bin\commands.js:48:18)
at Client. (C:\Users\remon\Documents\workspace\discord-voice-recorder\index.js:22:51)
at Client.emit (events.js:376:20)
at MessageCreateAction.handle (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\actions\MessageCreate.js:31:14)
at Object.module.exports [as MESSAGE_CREATE] (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\handlers\MESSAGE_CREATE.js:4:32)
at WebSocketManager.handlePacket (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\WebSocketManager.js:345:31)
at WebSocketShard.onPacket (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\WebSocketShard.js:443:22)
at WebSocketShard.onMessage (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\discord.js\src\client\websocket\WebSocketShard.js:300:10)
at WebSocket.onMessage (C:\Users\remon\Documents\workspace\discord-voice-recorder\node_modules\ws\lib\event-target.js:132:16)
at WebSocket.emit (events.js:376:20)
Any idea where it comes from and how to fix it ?
Create a Dockerfile to bundle all dependencies.
Mount /recrodings
as a persistent volume.
If the bot is invited to a channel with multple participants, the resulting recording has "cuts".
Maybe this is because of multiple streams being written to the file simultaneously?
(Not a bug just help needed)
How do I (step by step) implement this code, into a discord bot I already have running?
Question as the title says
Wolf狼狼 — 今天 21:21
!enter 999
The Bot
機器人
— 今天 21:21
The channel #999 doesn't exist or isn't a voice channel.
Got the bot running, detects and records audio, but after a couple of seconds the messages of started and stopped speaking stop and it seems the audio doesnt get recorded as well.
A cmd to convert the audio to mp3 and send to discord (if under the free limit)
UnhandledPromiseRejectionWarning: Error: FFmpeg/avconv not found!
When I record voices, it detect and create 2 PCM files : one with my voice, and an empty file.
Is it normal ? How can I have a single file ?
Hey thanks for this awesome bot... was wondering if maybe you could update the bot to be able to join Stage Channels.
Thanks
Since FFmpeg is a dependency is it possible to convert the output file to MP3 format? Will be easier to manage, thanks!
Bot runs fine when started up until it joins a VC, it crashes and shows the following:
C1sc0 started speaking
events.js:174
throw er; // Unhandled 'error' event
^
Error: ENOENT: no such file or directory, open '/home/linux/discord-voice-recorder/bin/../recordings/1612217676160.pcm'
Emitted 'error' event at:
at errorOrDestroy (internal/streams/destroy.js:107:12)
at WriteStream.onerror (_stream_readable.js:734:7)
at WriteStream.emit (events.js:198:13)
at lazyFs.open (internal/fs/streams.js:277:12)
at FSReqWrap.args [as oncomplete] (fs.js:140:20)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/linux/.npm/_logs/2021-02-01T22_14_36_168Z-debug.log
The stops at READY TO RECORD
line and sits idle!
Sliding into General...
Joined General!
READY TO RECORD
an error message appears.
/workspace/discord-voice-recorder/node_modules/discord.js/src/client/voice/VoiceConnection.js:303
this.emit('error', new Error(reason));
^
Error [VOICE_CONNECTION_TIMEOUT]: Connection not established within 15 seconds.
at VoiceConnection.authenticateFailed (/workspace/discord-voice-recorder/node_modules/discord.js/src/client/voice/VoiceConnection.js:303:26)
at /workspace/discord-voice-recorder/node_modules/discord.js/src/client/voice/VoiceConnection.js:324:61
at Timeout. (/workspace/discord-voice-recorder/node_modules/discord.js/src/client/BaseClient.js:82:7)
at listOnTimeout (node:internal/timers:569:17)
at process.processTimers (node:internal/timers:512:7) {
[Symbol(code)]: 'VOICE_CONNECTION_TIMEOUT'
}
how can I fix it?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.