我刚刚开始尝试使用在线教程在 Pythonista 中创建一个不和谐机器人,我安装了 StaSh 和 discord.py,我有以下代码,但我一直收到错误消息:
import discord
client = discord.Client()
@client.event
async def on_ready():
print('We have logged in as {0.user}'.format(client))
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('$hello'):
await message.channel.send('Hello!')
client.run("my_token")
错误是“没有名为'ctypes.macholib'的模块”,我根本不明白。有人可以帮忙吗?谢谢!