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”)