如果您想weather使用 discord.py创建命令并为您的机器人添加一个很酷的功能,我已经为您提供了帮助,我已经在下面回答了如何weather在 discord.py 中创建命令的问题。
python python-3.x openweathermap discord.py discord.py-rewrite
这是我试过的代码:
@client.event
async def on_message(message):
if client.user.mention in message.content.split():
await client.say("You can type `!vx help` for more info.")
Run Code Online (Sandbox Code Playgroud)
但它似乎不起作用。