下面有代码
和我写一个不和谐的机器人
但是我得到错误
"Exception has occurred: ClientConnectorError Cannot connect to host discord.com:443 ssl:default [The specified network name is no longer available]
">
最后一行
代码:
import discord
import os
client = discord.Client()
@client.event
async def ready1():
print('we have logged in')
@client.event
async def hello(message):
if message.author==client.user:
return
if message.content.contains('hello'):
await message.channel.send('hello')
client.run(token)
我刚刚重新生成了token,它成功了