Discordのbot用のプログラムでこのプログラムに何を足せばメッセージを送った人をメンションすることができますか?python3.7を使っています。
python
1import discord 2 3client = discord.Client() 4 5@client.event 6async def on_ready(): 7 print('We have logged in as {0.user}'.format(client)) 8 9@client.event 10async def on_message(message): 11 if message.author == client.user: 12 return 13 14 if message.content.startswith('Hi'): 15 await message.channel.send('hello') 16 17 18client.run("token")
質問をするなら、importしているdiscordモジュールの在り処を示し、自分でそのドキュメントを全て読み込んだ上でどうしても分からない部分「だけ」を聞きましょう。

回答1件
あなたの回答
tips
プレビュー