fuck
This commit is contained in:
commit
ee05963dbb
2 changed files with 40 additions and 0 deletions
39
main.py
Normal file
39
main.py
Normal file
|
@ -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"))
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue