This commit is contained in:
2024-09-05 15:54:30 +02:00
parent beb454392b
commit 3cd1741d3f
2 changed files with 6 additions and 1 deletions
+2
View File
@@ -24,6 +24,8 @@ async def on_message(msg: discord.Message):
if msg.author.bot:
return
user = aura.get(str(msg.author.id))
if user==None:
return
if int(time.time() - user.last_earned) >= COOLDOWN_PERIOD:
user.balance += 3
user.last_earned = time.time()