Create a Telegram class for handle chat_id, token and send mesage via Telegram API. Move Telegram object inside LoggerSettings - Create a Events enum class so we can handle color and Telegram message in this way

This commit is contained in:
Alessandro Maggio
2021-08-18 15:23:24 +02:00
parent 2b4575c0c3
commit f5ea160238
9 changed files with 180 additions and 111 deletions

View File

@@ -13,3 +13,26 @@ class Priority(Enum):
# Empty object shared between class
class Settings(object):
__slots__ = ["logger", "streamer_settings"]
class Events(Enum):
STREAMER_ONLINE = auto()
STREAMER_OFFLINE = auto()
GAIN_FOR_RAID = auto()
GAIN_FOR_CLAIM = auto()
GAIN_FOR_WATCH = auto()
GAIN_FOR_WATCH_STREAK = auto()
BET_WIN = auto()
BET_LOSE = auto()
BET_REFUND = auto()
BET_FILTERS = auto()
BET_GENERAL = auto()
BET_FAILED = auto()
BET_START = auto()
BONUS_CLAIM = auto()
JOIN_RAID = auto()
DROP_CLAIM = auto()
DROP_STATUS = auto()
def __str__(self):
return self.name