More than 10 karma allowed ;)

This commit is contained in:
dsc 2023-08-31 04:06:03 +03:00
parent 9a23d7e71f
commit 22441c932a

View file

@ -90,9 +90,8 @@ class Commands:
return await send_message(target, f"Nothing is playing?!") return await send_message(target, f"Nothing is playing?!")
song = history[0] song = history[0]
if song.karma <= 9: song.karma += 1
song.karma += 1 song.save()
song.save()
msg = f"Rating for \"{song.title}\" is {song.karma}/10 .. PARTY ON!!!!" msg = f"Rating for \"{song.title}\" is {song.karma}/10 .. PARTY ON!!!!"
await send_message(target=target, message=msg) await send_message(target=target, message=msg)