import discord from discord.ext import commands from dotenv import load_dotenv import os load_dotenv() intents: discord.Intents = discord.Intents.default() intents.messages = True intents.message_content = True bot: commands.Bot = commands.Bot(command_prefix="djmurderer.", intents=intents,replied_user=True) @bot.event async def on_message(message): # Check if this message is a reply if message.reference and message.reference.message_id: # Fetch the replied-to message replied_message = await message.channel.fetch_message(message.reference.message_id) if replied_message.content.lower() == "are you a dj?": reply = message.content.lower() if "no" in reply: await message.channel.send("aw") return elif "yes" in reply: await message.channel.send("i am going to murder you in cold blood") return elif "possibly" or "maybe" in reply: await message.channel.send("yes or no you bumbling moron") return if message.author.bot: return if "dj" in message.content: await message.channel.send("are you a dj?") msg = message.content.lower() if ("song" in msg or "songs" in msg) and ("recommend" in msg or "recommended" in msg or "recommendations" in msg): await message.channel.send("kill the dj by green day") elif "inspiration" in message.content: await message.channel.send("look at this we got bob ross here fucking loser") bot.run(os.getenv("token"))