【发布时间】:2018-09-25 08:09:08
【问题描述】:
我正在尝试让机器人在准备好后向我发送 dm:
@bot.event
async def on_ready():
print("Ready when you are")
print("I am running on: " + bot.user.name)
print("With the ID: " + bot.user.id)
await bot.send_message(discord.PrivateChannel(4803), "Ready", tts=True)
我怎样才能做到这一点?
谢谢。
【问题讨论】:
标签: python discord.py