Skip to content

Commit

Permalink
fix one more error
Browse files Browse the repository at this point in the history
  • Loading branch information
Malarne committed Oct 24, 2020
1 parent a72ede9 commit 3c4bde1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions anarchy/anarchy.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ async def predicate(ctx):
await ctx.cog.config.member(ctx.author).last_vote.set(datetime.datetime.timestamp(now))
return True
lastvote = datetime.datetime.fromtimestamp(ts_lastvote)
now = datetime.datetime.now()
delt = now - lastvote
if delt.days >= 1:
await ctx.cog.config.member(ctx.author).last_vote.set(datetime.datetime.timestamp(datetime.datetime.now()))
Expand Down

0 comments on commit 3c4bde1

Please sign in to comment.