Pip install discord.py

import discord
from discord.ext import commands

bot = commands.Bot(command_prefix=“!”)

@bot.event
async def on_ready():
print(f"ログイン完了: {bot.user}")

@bot.event
async def on_message(message):
if message.author.bot:
return

text = message.content  # メッセージの中身を変数に入れる

if "サンクス" in text:
    await message.channel.send("thanks!!")

if "unknown" in text:
    await message.channel.send("まさにunknownだ")

if "貴方は私を欲しがる" in text or "god" in text:
    await message.channel.send("yes! I am GOD!!")

await bot.process_commands(message)

bot.run(“Discord”)

First of all, Welcome.

Second of all, adding a question for the help you need would be necessary, as we here can’t know what issue you might have. Also making the code have the right kind of format would be appreciated (use `x3 to start / end the code section).