fix repeat cmd

This commit is contained in:
Milka64 2020-03-15 22:28:53 +01:00
parent d3bed5b996
commit 3ff7c86431

View file

@ -169,7 +169,7 @@ class Mybot(commands.Cog):
ctx.voice_client.play(source, after=lambda e: print('Player error: %s' % e) if e else None) ctx.voice_client.play(source, after=lambda e: print('Player error: %s' % e) if e else None)
self.sounds.pop(0) self.sounds.pop(0)
self.sounds_history.insert(source,0) self.sounds_history.insert(source,0)
if self.sounds_history >5: if len(self.sounds_history) >5:
self.sounds_history = self.sounds_history[:5] self.sounds_history = self.sounds_history[:5]