commit ee05963dbbedbb5746bd099b1c5567a880de773a Author: whatdidyouexpect Date: Mon Jul 21 23:15:03 2025 +0200 fuck diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/main.py b/main.py new file mode 100644 index 0000000..96030ce --- /dev/null +++ b/main.py @@ -0,0 +1,39 @@ +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")) +