我正在为自己的机器人使用Visual Studio代码。我才刚刚开始,却无法让我的机器人上线。这是我的代码
from discord.ext import commands
client = commands.Bot(command_prefix = '-')
@client.event
async def on_ready():
print('YEEEEEEEEET')
client.run('BOT_TOKEN')
答案 0 :(得分:0)
您需要创建一个漫游器并生成以下令牌:https://discordpy.readthedocs.io/en/latest/discord.html
答案 1 :(得分:0)
这是证书问题,而不是代码问题。