2025-07-21 23:15:03 +02:00
|
|
|
import discord
|
|
|
|
from discord.ext import commands
|
|
|
|
from dotenv import load_dotenv
|
2025-07-21 23:26:48 +02:00
|
|
|
import os
|
2025-07-21 23:15:03 +02:00
|
|
|
load_dotenv()
|
|
|
|
intents: discord.Intents = discord.Intents.default()
|
|
|
|
intents.messages = True
|
|
|
|
intents.message_content = True
|
2025-07-21 23:26:48 +02:00
|
|
|
bot: commands.Bot = commands.Bot(command_prefix="djmurderer.", intents=intents,replied_user=True)
|
2025-07-21 23:15:03 +02:00
|
|
|
|
|
|
|
@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
|
2025-07-21 23:26:48 +02:00
|
|
|
|
2025-07-21 23:15:03 +02:00
|
|
|
if message.author.bot:
|
|
|
|
return
|
|
|
|
if "dj" in message.content:
|
|
|
|
await message.channel.send("are you a dj?")
|
2025-07-21 23:26:48 +02:00
|
|
|
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")
|
2025-07-21 23:15:03 +02:00
|
|
|
elif "inspiration" in message.content:
|
|
|
|
await message.channel.send("look at this we got bob ross here fucking loser")
|
|
|
|
|
|
|
|
bot.run(os.getenv("token"))
|
|
|
|
|