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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user