split song correctly
This commit is contained in:
parent
9438a24131
commit
585094b818
1 changed files with 3 additions and 4 deletions
7
main.py
7
main.py
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue