fix user health updating
@@ -14,10 +14,10 @@ class Database(commands.Cog):
def cog_unload(self):
self.update_user_health.cancel()
- @tasks.loop(seconds=10)
+ @tasks.loop(seconds=4)
async def update_user_health(self):
async with self.db.acquire() as con:
- await con.execute('UPDATE users SET health = health + 2 WHERE health < 20')
+ await con.execute('UPDATE users SET health = health + 1 WHERE health < 20')
@update_user_health.before_loop
async def before_update_user_health(self):
