From 3ff7c8643137d39ecaa5bee8aad37a0809be07ec Mon Sep 17 00:00:00 2001 From: Milka64 Date: Sun, 15 Mar 2020 22:28:53 +0100 Subject: [PATCH] fix repeat cmd --- kabot/kabot/kabot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kabot/kabot/kabot.py b/kabot/kabot/kabot.py index 06b63d3..c09e4ff 100644 --- a/kabot/kabot/kabot.py +++ b/kabot/kabot/kabot.py @@ -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) self.sounds.pop(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]