import discord from discord import * from discord.ext import commands from dotenv import load_dotenv load_dotenv() PREFIX="!" intents: discord.Intents = discord.Intents.default() intents.messages = True intents.message_content = True bot: commands.Bot = commands.Bot(command_prefix=PREFIX, intents=intents, allowed_mentions=discord.AllowedMentions(everyone=False, roles=False, users=False, 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?") elif "inspiration" in message.content: await message.channel.send("look at this we got bob ross here fucking loser") bot.run(os.getenv("token"))