split song correctly

This commit is contained in:
deflax 2022-03-28 11:08:55 -04:00
parent 9438a24131
commit 585094b818

View file

@ -78,10 +78,9 @@ async def on_message(message):
else: else:
print('no title found') print('no title found')
return return
meta = (title.decode(encoding, errors='replace')) meta = title.decode(encoding, errors='replace')
metasplit = meta.split('*', 1)[0]
metastar = meta.split("*", 1)[0] await message.channel.send('] ' + metasplit)
await message.channel.send('] ' + meta)
@bot.event @bot.event
async def on_voice_state_update(member, before, after): async def on_voice_state_update(member, before, after):