This commit is contained in:
2024-09-05 15:58:57 +02:00
parent 3cd1741d3f
commit 18a3727fa5
+1 -1
View File
@@ -25,7 +25,7 @@ class User:
return f"**- balance: {self.balance}**" return f"**- balance: {self.balance}**"
class Aura: class Aura:
last_earns: dict[str, float] last_earns: dict[str, float] = {}
def __init__(self) -> None: def __init__(self) -> None:
redis_host = REDIS_URL.split(':') redis_host = REDIS_URL.split(':')
self.r = redis.Redis(host=redis_host[0], port=int(redis_host[1]), username=REDIS_USER, password=REDIS_PSW, decode_responses=True) self.r = redis.Redis(host=redis_host[0], port=int(redis_host[1]), username=REDIS_USER, password=REDIS_PSW, decode_responses=True)