From 585094b818de778922e2706a45f7d410ba5ddf47 Mon Sep 17 00:00:00 2001 From: deflax Date: Mon, 28 Mar 2022 11:08:55 -0400 Subject: [PATCH] split song correctly --- main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 557a78a..b75a953 100644 --- a/main.py +++ b/main.py @@ -78,10 +78,9 @@ async def on_message(message): else: print('no title found') return - meta = (title.decode(encoding, errors='replace')) - - metastar = meta.split("*", 1)[0] - await message.channel.send('] ' + meta) + meta = title.decode(encoding, errors='replace') + metasplit = meta.split('*', 1)[0] + await message.channel.send('] ' + metasplit) @bot.event async def on_voice_state_update(member, before, after):