Linting
All checks were successful
Lint / lint (pull_request) Successful in 1m15s

This commit is contained in:
2025-02-22 22:51:01 -05:00
parent 1de9e9ce1d
commit 8f0df2e3e1
5 changed files with 30 additions and 29 deletions

View File

@@ -88,10 +88,10 @@ class DiscordBotManager:
voice_client = await channel.connect()
streamHandler = NoiseGate(
_input_device_index=device_id,
_voice_connection=voice_client,
_noise_gate_threshold=ng_threshold)
# Start the audio stream
_input_device_index=device_id,
_voice_connection=voice_client,
_noise_gate_threshold=ng_threshold)
# Start the audio stream
streamHandler.run()
self.voice_clients[guild_id] = voice_client
print(f"Joined guild {guild_id} voice channel {channel_id}.")
@@ -108,6 +108,7 @@ class DiscordBotManager:
del self.voice_clients[guild_id]
print(f"Left guild {guild_id} voice channel.")
# Initialize Discord Bot Manager
bot_manager = DiscordBotManager()
@@ -154,4 +155,4 @@ async def get_status():
app.include_router(op25_controller.router, prefix="/op25")
app.include_router(pulse.router, prefix="/pulse")
app.include_router(pulse.router, prefix="/pulse")