more music
This commit is contained in:
51
main.py
51
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:
|
||||
|
||||
BIN
music/blind.mp3
Normal file
BIN
music/blind.mp3
Normal file
Binary file not shown.
BIN
music/exit music for a film.mp3
Normal file
BIN
music/exit music for a film.mp3
Normal file
Binary file not shown.
BIN
music/falling away from me.mp3
Normal file
BIN
music/falling away from me.mp3
Normal file
Binary file not shown.
BIN
music/freak on a leash.mp3
Normal file
BIN
music/freak on a leash.mp3
Normal file
Binary file not shown.
BIN
music/high.mp3
Normal file
BIN
music/high.mp3
Normal file
Binary file not shown.
BIN
music/making love to morgan wallen.mp3
Normal file
BIN
music/making love to morgan wallen.mp3
Normal file
Binary file not shown.
BIN
music/nookie.mp3
Normal file
BIN
music/nookie.mp3
Normal file
Binary file not shown.
BIN
music/paranoid android.mp3
Normal file
BIN
music/paranoid android.mp3
Normal file
Binary file not shown.
BIN
music/s33k h3lp.mp3
Normal file
BIN
music/s33k h3lp.mp3
Normal file
Binary file not shown.
Reference in New Issue
Block a user