【发布时间】:2021-03-29 16:24:27
【问题描述】:
我希望我的机器人能够回复提及特定用户(例如,一个人提到我的个人帐户,而机器人回复说我目前不在这里)
有没有办法使用类似的格式来做到这一点?
@client.event
async def on_message(message):
if message.author == client.user:
return
if message.content.startswith('@user_id'):
await message.channel.send('Im not here leave a message!')
【问题讨论】:
标签: python discord bots discord.py