diff --git a/main.py b/main.py index 0ab139b..118dc66 100644 --- a/main.py +++ b/main.py @@ -49,7 +49,7 @@ happy_answers = [ "yahoo", "gleep :)" ] -swear_words = ["fuck", "shit", "cunt", "bitch", "fucking"] +swear_words = ["fuck", "shit", "cunt", "bitch", "fucking", "fag", "nigg"] hi = ["hi", "hi ", "hey ", "hello "] hello = ["hii :3", "hewwo :3", "heyy :D"] why_question_answers = [ @@ -115,6 +115,33 @@ crash_out_responses = [ "not. right. now.", "GOD JUST SHUT UP, PLEASE. I BEG OF YOU" ] +thanks_responses = [ + "no problem!!! :D", + "you are welcomz", + 'hehe :3' +] + + +class MusicMenu(discord.ui.Select): + def __init__(self): + options = [discord.SelectOption(label=a.rsplit(".", 1)[0]) for a in os.listdir("music")] + [discord.SelectOption(label="random song", description="gleep glorp wil chuz a son for u!!!!", value="RANDOM")] + super().__init__(max_values=1, min_values=1, placeholder="chuz songz", options=options) + + async def callback(self, interaction: discord.Interaction): + chosen_song = self.values[0] + ".mp3" if self.values[0] != "RANDOM" else choice(os.listdir("music")) + + if self.values[0] == "RANDOM": + await interaction.response.send_message(content="i choz {chosen_song.rsplit('.', 1)[0]} forr uuuu :3\ngimme a sec while i send it...") + else: + await interaction.response.send_message(content="gimme a sec while i send it...") + + file = os.path.join("music/", chosen_song) + await send_voice_message(file, interaction.channel) + +class MusicView(discord.ui.View): + def __init__(self): + super().__init__() + self.add_item(MusicMenu()) async def send_tts_message(message: str, channel: discord.TextChannel): @@ -296,7 +323,7 @@ async def on_message(message: discord.Message): await decrease_mood(message) return else: - target = message.mentions[1] + if message.mention_everyone == True: await message.reply("veri funni buckaroo :|") @@ -304,6 +331,7 @@ async def on_message(message: discord.Message): if message.guild.get_role(admin_role_id) in message.author.roles: try: + target = message.mentions[1] await message.reply("deploying gleep glorp lazor off dume!!!!") time.sleep(1) await message.channel.send("targor aquire....") @@ -328,16 +356,20 @@ async def on_message(message: discord.Message): if content.find("goon") != -1: response = "gooning is not allowed you fucking weirdo" await decrease_mood(message) - elif content.startswith("play some music"): - song_name = choice(os.listdir("music")) - await message.reply("ok ill play " + song_name.rsplit(".", 1)[0]) - file = os.path.join("music/", song_name) - await send_voice_message(file, message.channel) + elif content.startswith("play"): + #song_name = choice(os.listdir("music")) + #await message.reply("ok ill play " + song_name.rsplit(".", 1)[0]) + #file = os.path.join("music/", song_name) + #await send_voice_message(file, message.channel) + await message.reply("here are the songs i have", view=MusicView()) return elif content.startswith("speak "): content = content.removeprefix("speak ") await send_tts_message(content, message.channel) return + elif content.startswith("say "): + content = content.removeprefix("say ") + response = content elif content.find("bad alien") != -1: response = choice(sad_answers) await decrease_mood(message) @@ -357,11 +389,8 @@ async def on_message(message: discord.Message): elif content.find("ihy") != -1 or content.find("hate you") != -1 or content.find("detest you") != -1 or content.find("despise you") != -1 or content.find("hate you") != -1 != -1 or content.find("screw you") != -1 or content.find("fuck you") != -1: response = choice(sad_answers) await decrease_mood(message) - elif content.startswith("say "): - content = content.removeprefix("say ") - response = content elif content.find("thanks") != -1 or content.find("thank you") != -1: - response = "no problem bro 😎" + response = choice(thanks_responses) await increase_mood(message) else: if randint(1, 10) != 1: diff --git a/music/blind.mp3 b/music/blind.mp3 new file mode 100644 index 0000000..4b31a21 Binary files /dev/null and b/music/blind.mp3 differ diff --git a/music/exit music for a film.mp3 b/music/exit music for a film.mp3 new file mode 100644 index 0000000..14adb8b Binary files /dev/null and b/music/exit music for a film.mp3 differ diff --git a/music/falling away from me.mp3 b/music/falling away from me.mp3 new file mode 100644 index 0000000..0bed5a8 Binary files /dev/null and b/music/falling away from me.mp3 differ diff --git a/music/freak on a leash.mp3 b/music/freak on a leash.mp3 new file mode 100644 index 0000000..0766d36 Binary files /dev/null and b/music/freak on a leash.mp3 differ diff --git a/music/high.mp3 b/music/high.mp3 new file mode 100644 index 0000000..5fa5101 Binary files /dev/null and b/music/high.mp3 differ diff --git a/music/making love to morgan wallen.mp3 b/music/making love to morgan wallen.mp3 new file mode 100644 index 0000000..b5093fa Binary files /dev/null and b/music/making love to morgan wallen.mp3 differ diff --git a/music/nookie.mp3 b/music/nookie.mp3 new file mode 100644 index 0000000..35966d3 Binary files /dev/null and b/music/nookie.mp3 differ diff --git a/music/paranoid android.mp3 b/music/paranoid android.mp3 new file mode 100644 index 0000000..827a688 Binary files /dev/null and b/music/paranoid android.mp3 differ diff --git a/music/s33k h3lp.mp3 b/music/s33k h3lp.mp3 new file mode 100644 index 0000000..e9acf1f Binary files /dev/null and b/music/s33k h3lp.mp3 differ