Skip to content

Latest commit

 

History

History
17 lines (10 loc) · 1.09 KB

README.md

File metadata and controls

17 lines (10 loc) · 1.09 KB

Discord Stream Bot

Once you configure your own personal bot, see tutorial here, place the token in a txt file in the same folder called token.txt.

This bot uses Pyaudio to read any available input and stream the audio to discord. Only mono and stereo inputs are supported (1 and 2 channels). The script will present a nice CLI interface to select those.

This bot does not create a device input, only reads available ones. If you want to redirect audio using virtual inputs, you need an interface to do that, like Jack audio on Linux, VB-Cable on Windows or BlackHole on MacOS.

Poetry is the recommended way to manage dependencies, but you can install them via pip normally with requirements.txt (includes all dependencies).

To compile the bot to exe, use this command:

pyinstaller --console --onefile --collect-all discord --collect-all samplerate --collect-all pyaudio bot.py

Tutorial video (PT-BR): https://youtu.be/UX1de8Hu2p0