diff --git a/music_commands.py b/music_commands.py index e628725..e2d0d96 100644 --- a/music_commands.py +++ b/music_commands.py @@ -607,7 +607,7 @@ class MusicModule(commands.Cog): content_type = ctx.message.attachments[0].content_type check = re.search ("text\/plain; *charset=(.*)", content_type, re.IGNORECASE) await ctx.reply("Kurwa. Aleś mi roboty narobił... No nic. Ku radości. Skal!") - with ctx.typing(): + async with ctx.typing(): if check: global MUZYKA # pylint: disable=global-variable-not-assigned file_bytes = await ctx.message.attachments[0].read() @@ -651,7 +651,7 @@ class MusicModule(commands.Cog): + file["name"] + ".mp3" ) - global MUZYKA # pylint: disable=global-variable-not-assigned + MUZYKA["queue"].insert( 0, dir_path