forked from paqul/MinionBot
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathaudio.py
More file actions
15 lines (14 loc) · 654 Bytes
/
audio.py
File metadata and controls
15 lines (14 loc) · 654 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# @client.event
# async def on_message(message):
# # arg = message.content.split(' ')
# if message.content.startswith('>'):
# voice = await message.author.voice.channel.connect()
# # voice.play(discord.FFmpegPCMAudio(YouTube(arg[1]).streams.first().download()))
# voice.play(discord.FFmpegPCMAudio(r"F:\mp3\mp3 2022\OwlCity.mp3"))
# await message.guild.change_voice_state(channel=voice, self_mute=True, self_deaf=False)
# def run_audio_setup():
# pass
# discord.VoiceClient()
# discord.VoiceProtocol()
# voice_protocol = discord.VoiceChannel.connect(None, None, None,)
# discord.AudioSource()