From 8e0deb091bcf2e371b722e9a98c994516357b779 Mon Sep 17 00:00:00 2001 From: DigiDuncan Date: Sun, 26 Nov 2023 14:54:33 -0500 Subject: [PATCH] this sucked anyway --- sizebot/lib/betterstats.py | 17 ----------------- 1 file changed, 17 deletions(-) delete mode 100644 sizebot/lib/betterstats.py diff --git a/sizebot/lib/betterstats.py b/sizebot/lib/betterstats.py deleted file mode 100644 index 1c993a3d..00000000 --- a/sizebot/lib/betterstats.py +++ /dev/null @@ -1,17 +0,0 @@ -from typing import Union -from decimal import Decimal -from sizebot.lib.units import SV, TV, WV -from sizebot.lib.userdb import User - - -Unit = Union[SV, TV, WV, Decimal, bool, str] - -class Stat: - def __init__(self, key: str, name: str, equation: callable[[User], Unit], exponent: int = 1): - self.key = key - self.name = name - self.equation = equation - self.exponent = exponent - - def from_user(self, user: User) -> Unit: - return self.equation(user)