Should be less than delta
This commit is contained in:
parent
37a67ac313
commit
593894bc4f
@ -86,7 +86,7 @@ class Bot(discord.Client):
|
|||||||
|
|
||||||
spotify: discord.Spotify
|
spotify: discord.Spotify
|
||||||
last_insert = self.last_insert.get(user_id)
|
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
|
return
|
||||||
|
|
||||||
self.last_insert[user_id] = spotify.created_at
|
self.last_insert[user_id] = spotify.created_at
|
||||||
|
Loading…
x
Reference in New Issue
Block a user