Working on bug in leaving
This commit is contained in:
6
bot.py
6
bot.py
@@ -91,9 +91,9 @@ class Bot(commands.Bot):
|
||||
voice_connection = await channel.connect()
|
||||
|
||||
# Create an audio stream from selected device
|
||||
self.streamHandler = sound.PCMStream()
|
||||
# Ensure the selected device is available and start the audio stream
|
||||
self.streamHandler.change_device(self.DEVICE_ID)
|
||||
self.streamHandler = sound.PCMStream(self.DEVICE_ID)
|
||||
# Start the audio stream
|
||||
self.streamHandler.stream.start()
|
||||
|
||||
# Play the stream
|
||||
voice_connection.play(discord.PCMAudio(self.streamHandler))
|
||||
|
||||
Reference in New Issue
Block a user