Optimize Discord Bot Audio Pipeline

Job ID: 39498483

Budget: $250 – $750 USD

I'm looking for a skilled developer to rework and optimize a Discord bot audio recording pipeline. The bot is currently written in Bun and is experiencing performance issues, particularly high CPU and memory usage. It is hosted on a cloud service.

The functionality needed is as follows:
- Command: /record - Records every user in a specified voice channel, excluding a predefined list of ignored users.
- Command: /stop - Generates a multichannel (multitrack) FLAC or AAC file, with separate audio tracks for each user.
- Add sharding functionality to the bot

Key Deliverables:
- Optimize the existing code to reduce CPU and memory usage.
- Provide a detailed explanation of the changes made, including the reasoning behind each decision and the effectiveness of the solutions.

Ideal Skills and Experience:
- Proficiency in Bun and Discord bot development.
- Strong background in audio processing and optimization.
- Experience with cloud services, particularly in managing resource usage.
- Ability to clearly communicate technical decisions.

Please ensure that your solution is efficient and scalable.