update /pp to display correct vote streak info + update db if necessary
@@ -124,10 +124,12 @@ class Econ(commands.Cog):
vote_streak = db_user["vote_streak"]
voted = arrow.utcnow().shift(hours=-12) < arrow.get(0 if db_user["streak_time"] is None else db_user["streak_time"])
- if arrow.utcnow().shift(days=-1, minutes=-10) > arrow.get(
+ if arrow.utcnow().shift(days=-1, hours=-12) > arrow.get(
0 if db_user["streak_time"] is None else db_user["streak_time"]
):
vote_streak = 0
+ await self.db.update_user(uid, "vote_streak", 0)
+ await self.db.update_user(uid, "stream_time", None)
embed = discord.Embed(color=self.d.cc, description=health_bar)
embed.set_author(name=user.display_name, icon_url=user.avatar_url_as())
