2017-09-04 26 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") 
相關問題