Should be less than delta

This commit is contained in:
strNophix 2022-08-06 22:22:55 +02:00
parent 37a67ac313
commit 593894bc4f

View File

@ -86,7 +86,7 @@ class Bot(discord.Client):
spotify: discord.Spotify
last_insert = self.last_insert.get(user_id)
if last_insert and (spotify.created_at - last_insert) > timedelta(seconds=15):
if last_insert and (spotify.created_at - last_insert) < timedelta(seconds=15):
return
self.last_insert[user_id] = spotify.created_at