This commit is contained in:
2024-11-10 20:11:55 +00:00
parent f0bb8f7ac2
commit bbc91fbd73
+2 -2
View File
@@ -607,7 +607,7 @@ class MusicModule(commands.Cog):
content_type = ctx.message.attachments[0].content_type content_type = ctx.message.attachments[0].content_type
check = re.search ("text\/plain; *charset=(.*)", content_type, re.IGNORECASE) check = re.search ("text\/plain; *charset=(.*)", content_type, re.IGNORECASE)
await ctx.reply("Kurwa. Aleś mi roboty narobił... No nic. Ku radości. Skal!") await ctx.reply("Kurwa. Aleś mi roboty narobił... No nic. Ku radości. Skal!")
with ctx.typing(): async with ctx.typing():
if check: if check:
global MUZYKA # pylint: disable=global-variable-not-assigned global MUZYKA # pylint: disable=global-variable-not-assigned
file_bytes = await ctx.message.attachments[0].read() file_bytes = await ctx.message.attachments[0].read()
@@ -651,7 +651,7 @@ class MusicModule(commands.Cog):
+ file["name"] + file["name"]
+ ".mp3" + ".mp3"
) )
global MUZYKA # pylint: disable=global-variable-not-assigned
MUZYKA["queue"].insert( MUZYKA["queue"].insert(
0, 0,
dir_path dir_path