diff --git a/main.py b/main.py index 96030ce..8b2cb26 100644 --- a/main.py +++ b/main.py @@ -1,13 +1,12 @@ import discord -from discord import * from discord.ext import commands from dotenv import load_dotenv +import os 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: commands.Bot = commands.Bot(command_prefix="djmurderer.", intents=intents,replied_user=True) @bot.event async def on_message(message): @@ -28,10 +27,14 @@ async def on_message(message): 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")