A Discord bot for Purdue Hackers that uses Remotion to programmatically generate videos from messages
I recommending first renaming the .env.example file to .env and going from there.
- Discord Application:
Put the Client ID and the Bot Token in the
.envfile'sCLIENT_IDandTOKENvariables - Pexels API Key:
Put the Pexels API Key in the
.envfile'sPEXELS_API_KEYvariable - Local executable of Piper to synthesize speech
Put the command to generate the audio and send it to
STDOUTin the.envfile'sTTS_COMMANDvariable Tip: You will likely need to pass the arguments:--output_file - --quiet
Further configuration can be done inside the config.ts files in each project, however that goes beyond basic configuration and will require programming knowledge
Warning for Windows Users: Windows doesn't properly handle raw standard IO transmissions which will corrupt the TTS audio. If you have any fixes, please tell me, otherwise, proceed at your own (mental) risk.
This project is build and executed with the yarn package manager
Run yarn inside:
- The project root
engines/FiberOpticCableCore
to install all the necessary libraries for the bot
Then, you can run yarn start inside the project root to start everything