A Discord bot that records voice audio from users in a voice channel to .ogg files.
- Records specific users to local
.oggfiles. - Handles Opus packets directly from Discord.
- Patched to fix common
voice_recvcrashes.
-
Install Dependencies:
pip install -U discord.py[voice] discord-ext-voice-recv av numpy python-dotenv
Note: You may need to install
libopusandffmpegseparately depending on your OS. -
Configuration:
- Create a
.envfile in the root directory. - Add your bot token:
DISCORD_TOKEN=your_token_here
- Create a
-
Run:
python main.py
/join: Join your current voice channel./startrecord <user> <path>: Start recording a user./stoprecord: Stop recording and save the file./leave: Leave the voice channel.
This project is open-source and free to use for any purpose.
DISCLAIMER: This software is provided for educational purposes only. The authors and contributors are not responsible for any misuse, harm, or legal consequences arising from the use of this bot. It is your responsibility to ensure you comply with all applicable laws and Discord's Terms of Service regarding audio recording and consent.