title: How could I constatly check a value in Python 3.8
body: <p>So I'm programming a discord bot (using discord.py library) that should manage RPG characters and some other things, I want to manage leveling/xp with the bot. My question is : is there a way that the bot will check every x seconds all the players xp amount ? I know I could write something like if character.xp == xp_amount in every parts that grant xp/create a function that does it and call in these parts, but it is possible to do it &quot;passively&quot; ?</p>