import discord
import random
client = discord.Client()
async def joinVoiceChannel():
channel = client.get_channel('Id')
voice = client.join_voice_channel(channel)
print('Bot should joined the Channel')
@client.event
async def on_ready():
#info
print('Logged in as')
print(client.user.name)
print(client.user.id)
print('------')
await joinVoiceChannel()
client.run('token')
我不知道为什么它不起作用,请帮忙,我已经看了一些东西,但似乎什么也不管用。我什么都搜过了 谢谢你
还要确保安装了PyNaCl,可以通过复制和粘贴
py -m pip install PyNaCl
从命令行安装它相关问题 更多 >
编程相关推荐