2017-09-04 25 views
0

我正在做一个不和谐的机器人。我希望自己和我的朋友发布机器人信息。我的确有消息部分回复执行命令的人,但是我不知道如何让消息传递给人。这是我迄今为止的命令的代码。我在其他语言中看到过这个问题的多个版本,但是我不知道如何将它们转换为python。
任何帮助?机器人应该在运行命令时向两个人发送消息

@UGH.command() 
async def support(): 
    message = 'A Staff member will be with you shortly, please do not run this command more than once.' 
    await UGH.say(message) 

回答

0

可以留言的人,例如有:

private_channel = await client.start_private_message(message.author) 
await client.send_message(private_channel, "Message") 
相关问题